Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy authored Feb 26, 2024
1 parent 5fb62ee commit 17ce2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/brown-pets-clean.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

The astro middleware now runs when a matching page or endpoint is not found. Previously, a `pages/404.astro` or `pages/[...catch-all].astro` route had to match to allow middleware. This is now not necessary.

Note that some adapters may need to update to let Astro's SSR code handle the not-found case.
When a route does not match in SSR deployments, your adapter may show a platform-specific 404 page instead of running Astro's SSR code. In these cases, you may still need to add a `404.astro` or fallback route with spread params, or use a routing configuration option if your adapter provides one.

0 comments on commit 17ce2d3

Please sign in to comment.