netlify serve
does not work with an Astro project using SSR and middleware
#6720
Labels
netlify serve
does not work with an Astro project using SSR and middleware
#6720
Describe the bug
I'm trying to debug a production issue where Netlify is not serving the default Astro 404 page.
For example: https://test-default-404.netlify.app/sdfsdf doesn't show the default Astro 404.
Sentry also seems to report this error in production as NoMatchingRenderer. Public link to issue.
In development, running
netlify dev
and navigating to a legitimate 404 serves the Astro 404 page.In order to try and see what was going on in production, I attempted to use
netlify serve
locally.However,
netlify serve
, despite showing no errors in the console returns a 404 on ports 8888 (default port which is opened by the CLI in browser), 3999 (as shown for the static server in the console) and 4321 (default Astro port — which I need to use fornetlify dev
anyway due to using middleware via the Sentry integration).Steps to reproduce
netlify serve
and observe that localhost:8888/3999/4321 returns a 404netlify dev
and observe that localhost:4321/asd or localhost:8888/asd returns the default Astro 404Configuration
Environment
The text was updated successfully, but these errors were encountered: