diff options
| author | 2023-05-01 16:37:07 +0200 | |
|---|---|---|
| committer | 2023-05-01 10:37:07 -0400 | |
| commit | a98df9374dec65c678fa47319cb1481b1af123e2 (patch) | |
| tree | 104aa54faecb22789e96ea465d9f0ed4790ac233 /packages/integrations/netlify/test/edge-functions/edge-basic.test.ts | |
| parent | d6b153bcac489d47ebc9cadaa2bc2a63a08446a7 (diff) | |
| download | astro-a98df9374dec65c678fa47319cb1481b1af123e2.tar.gz astro-a98df9374dec65c678fa47319cb1481b1af123e2.tar.zst astro-a98df9374dec65c678fa47319cb1481b1af123e2.zip | |
Show injected custom 404 route in dev (#6940)
* Add unit test for injected 404 routes
* Add fixture test for injected 404 routes
* Use any route pattern to find custom 404
* Fix frozen lockfile error
* Use `route` instead of `pattern` to match custom 404
Dynamic catch-all routes can match against `/404/` but will then error because they’re not actually designed to handle a param of `'404'`. Testing `route` instead excludes dynamic routes (because they’ll contain dynamic segments inside square brackets). Not sure if someone might _want_ to render the 404 via a dynamic route, but we already don’t support that, so this doesn’t change anything.
* Fix injected 404 fixture
* Add tests for `src/pages/404.html`
* Add changeset
* Fix lockfile
* And again
Diffstat (limited to 'packages/integrations/netlify/test/edge-functions/edge-basic.test.ts')
0 files changed, 0 insertions, 0 deletions
