astro/packages
Tony Sullivan 637919c8b6
Improvements to build and dev when building for subpaths (#3156)
* `astro build` should include the `base` provided in astro config

* test: updating build test to expect the base path in links/scripts

* ignore the default "base" value when building links/scripts

* fix: handling config that provides a base but no site

* fix: config.site was being ignored since it's a URL not a string

* hack: handle base path in dev for /public assets

* fix: dev redirect needs to ignore base default of ./

* fix: extra safety checks for the base path redirect

* refactor: simplifying it to remove the regex

* one last safety check - only redirect GET and use a 302 status

* fix: lost the leading slash when redirecting

* nit: adding comments to the test explaining how base is verified

* Remove extra console.log

* Adds a changeset

Co-authored-by: unknown <matthew@skypack.dev>
2022-04-21 14:03:05 -04:00
..
astro Improvements to build and dev when building for subpaths (#3156) 2022-04-21 14:03:05 -04:00
astro-prism [ci] update lockfile (#3153) 2022-04-20 09:42:31 -04:00
create-astro update prettier width (#2968) 2022-04-02 14:15:41 -06:00
integrations [ci] release (#3165) 2022-04-21 12:19:52 -04:00
markdown/remark [ci] update lockfile (#3153) 2022-04-20 09:42:31 -04:00
webapi [ci] update lockfile (#3153) 2022-04-20 09:42:31 -04:00