You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Templates with prerender active do not correctly handle routes that do not exist.
If we load any route that does not exist, if prerendering is true, it should handle the routes as static and return a 404.
But it seems that the template acts as a SSR type template, catch the route and returns an error because Astro.prop is empty (logical because there is no data for this route).
For example, when the browser asks for "/favicon.ico" throws an error...
What version of
astro
are you using?2.0.1
Are you using an SSR adapter? If so, which one?
Netlify
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Note: This only happens with "astro dev" command.
Templates with prerender active do not correctly handle routes that do not exist.
If we load any route that does not exist, if prerendering is true, it should handle the routes as static and return a 404.
But it seems that the template acts as a SSR type template, catch the route and returns an error because Astro.prop is empty (logical because there is no data for this route).
For example, when the browser asks for "/favicon.ico" throws an error...
Error test: https://stackblitz.com/github/juanmiguelguerrero/astro-prerender-starticpaths-v2.0.1-error
Link to Minimal Reproducible Example
https://stackblitz.com/github/juanmiguelguerrero/astro-prerender-starticpaths-v2.0.1-error
Participation
The text was updated successfully, but these errors were encountered: