Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

routing to on-demand page doesn't work on netlify deployments #429

Open
1 task
raswonders opened this issue Oct 29, 2024 · 0 comments
Open
1 task

routing to on-demand page doesn't work on netlify deployments #429

raswonders opened this issue Oct 29, 2024 · 0 comments

Comments

@raswonders
Copy link

raswonders commented Oct 29, 2024

Astro Info

Astro                    v5.0.0-beta.5
Node                     v20.11.1
System                   Linux (x64)
Package Manager          unknown
Output                   static
Adapter                  @astrojs/netlify
Integrations             none

Describe the Bug

Hi,

on netlify deployments, opt-in for SSR page via export const prerender = false; makes route unavailable and causes 404 error.

  • it works on local dev server.
  • running output: "server" with opt-in for SSG in other pages export const prerender = true; works fine.
  • min. reproducer with SSR /contact page attached

What's the expected result?

Expectation is that opt-in for SSR works per page on netlify deployments. It does work on local dev server. On latest stable v4 this works with output: hybrid

Link to Minimal Reproducible Example

https://github.com/raswonders/astro-reproducer

Participation

  • I am willing to submit a pull request for this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant