astro/packages
Ben Holmes a14075e2a4
Feat: show 404 when getStaticPaths doesn't match URL (#2743)
* WIP: return 404 for unmatched getStaticPaths route

* feat: regex on static paths to 404 in dev

* Revert "WIP: return 404 for unmatched getStaticPaths route"

This reverts commit 9c395a2586ca40d44c3ab18edc7ffbc1c4660ed8.

* feat: call getParamsAndProps pre-ssr to catch errs

* fix: remove unused cache regex check

* fix: revert getPattern changes

* fix: remove unused preload props

* fix: log 404 for custom 404 pages

* refactor: rename fixture for clarity

* feat: add getStaticPaths status code tests

* fix: pas rootRelativeUrl to handle subpaths

* fix: update dev-routing tests from 500 -> 404

* refactor: make error handling more explicit

* lint: use typescript no shadow to fix enum issue

* chore: add changeset

* refactor: clarify test names

* refactor: remove variable reassignment

* fix: update dev-routing tests 500 > 404

* refactor: update test file structure

* Fix: revert to old logging

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Chore: use `const enum` instead

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* chore: format

Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-10 13:02:37 -05:00
..
astro Feat: show 404 when getStaticPaths doesn't match URL (#2743) 2022-03-10 13:02:37 -05:00
astro-parser update deps: esbuild, typescript (#2750) 2022-03-10 09:55:40 -06:00
astro-prism [ci] release (#2219) 2021-12-23 11:49:30 -05:00
create-astro [ci] format 2022-03-10 15:56:29 +00:00
markdown/remark Move from yarn to pnpm (#2455) 2022-03-08 15:46:11 -06:00
renderers merge next into main (#2705) 2022-03-09 15:44:26 -06:00
webapi update deps: esbuild, typescript (#2750) 2022-03-10 09:55:40 -06:00