summaryrefslogtreecommitdiff
path: root/packages/create-astro/test/create-astro.test.js
diff options
context:
space:
mode:
authorGravatar Tony Sullivan <tony.f.sullivan@outlook.com> 2022-04-21 18:03:05 +0000
committerGravatar GitHub <noreply@github.com> 2022-04-21 14:03:05 -0400
commit637919c8b63df1608e88d153742db098722265d8 (patch)
treeb71be9968095e8992c9d20a97c637856c38d1249 /packages/create-astro/test/create-astro.test.js
parent0406bdc35b6858a05a86166c491c64bf1d6041b9 (diff)
downloadastro-637919c8b63df1608e88d153742db098722265d8.tar.gz
astro-637919c8b63df1608e88d153742db098722265d8.tar.zst
astro-637919c8b63df1608e88d153742db098722265d8.zip
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>
Diffstat (limited to 'packages/create-astro/test/create-astro.test.js')
0 files changed, 0 insertions, 0 deletions