0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages
Chris Swithinbank a98df9374d
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
2023-05-01 10:37:07 -04:00
..
astro Show injected custom 404 route in dev (#6940) 2023-05-01 10:37:07 -04:00
astro-prism [ci] release (#6476) 2023-03-13 16:05:43 -04:00
astro-rss [ci] release (#6914) 2023-04-27 22:12:14 +08:00
create-astro Fix changeset publish (#6923) 2023-04-27 22:55:48 +08:00
integrations [ci] format 2023-05-01 14:11:30 +00:00
markdown Upgrade turbo (#6911) 2023-04-27 11:39:15 +08:00
telemetry Upgrade undici to v5.22.0 (#6929) 2023-04-28 21:13:49 +08:00
webapi Upgrade undici to v5.22.0 (#6929) 2023-04-28 21:13:49 +08:00