-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)
Description
What version of astro are you using?
2.5.5
Are you using an SSR adapter? If so, which one?
Node
What package manager are you using?
npm
What operating system are you using?
Linux
What browser are you using?
Firefox
Describe the Bug
Route Priority Order favours static pages over SSR, but all routes alphabetically in development. This causes a mismatch between what the user sees in development vs production.
As an example, we have two rest parameter routes. [...page].astro (SSR) and [...slug].astro (static).
- In development
[...page].astrotakes priority because of the alphabetical ordering. - In production (at least in the case of the Node adapter) generated static pages of
[...slug].astrotake priority, leaving[...page.astro]any non-static routes.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-dxo1jg?file=src%2Fpages%2Fblog%2F[...page].astro&on=stackblitz
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)