astro/.changeset/twelve-oranges-approve.md
Matthew Phillips fca1a99dbd
Support for using a subpath (#1801)
* Support for using a subpath

* Update the readme

* Fix the package name

* Adds a changeset

* Ensure that public/ must be loaded from the subpath

* Update preview to use the new paths

* Use exact compiler version

* Use the newest version

* Use range again

* Use newer range
2021-11-15 10:33:51 -05:00

435 B

astro
patch

Provides first-class support for a site deployed to a subpath

Now you can deploy your site to a subpath more easily. Astro will use your buildOptions.site URL and host the dev server from there.

If your site config is http://example.com/blog you will need to go to http://localhost:3000/blog/ in dev and when using astro preview.

Includes a helpful 404 page when encountering this in dev and preview.