Skip to content

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

@raswonders

Description

@raswonders

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.

Metadata

Metadata

Assignees

Labels

needs triageIssue needs to be triagedpkg: netlifyRelated to the Netlify adapter

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions