Astro Info
Astro v6.3.7
Vite v7.3.3
Node v22.22.2
System macOS (arm64)
Package Manager npm
Output server
Adapter @astrojs/node (v10.1.1)
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
With @astrojs/node adapter the on-demand dynamic routes are not loaded when static dynamic routes are loaded first. This worked previously with astro@5 and @astrojs/node@9.
Steps to reproduce
- Open linked stackblitz
- run
npm run build
- run
npm run preview
- open
/page-1 (static page => works)
- open
/foobar (on demand page => doesn't work but should work)
Attention: dev mode it works fine, you need to do a build and preview that one.
Example:
Does not work:
pages/
[a_prebuild].astro
[b_ssr].astro
Does work:
pages/
[a_ssr].astro
[b_prebuild].astro
Note: same behavior for catch-all [...foobar].astro routes.
What's the expected result?
Having routes defined like this would still render on-demand pages:
pages/
[a_prebuild].astro
[b_ssr].astro
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-b7qkswdh?startScript=build,preview
Participation
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
With
@astrojs/nodeadapter the on-demand dynamic routes are not loaded when static dynamic routes are loaded first. This worked previously withastro@5and@astrojs/node@9.Steps to reproduce
npm run buildnpm run preview/page-1(static page => works)/foobar(on demand page => doesn't work but should work)Attention: dev mode it works fine, you need to do a build and preview that one.
Example:
Does not work:
Does work:
Note: same behavior for catch-all
[...foobar].astroroutes.What's the expected result?
Having routes defined like this would still render on-demand pages:
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-b7qkswdh?startScript=build,preview
Participation