#Netlify configuration (redirects, headers) does not work in SSR mode

11 messages · Page 1 of 1 (latest)

vernal kraken
vernal pollen
# vernal kraken Do ssr routes work at all in Netlify? What logs are you seeing on your ssr funct...

Yes, partly. In a production deployment of Netlify, only the following routes work:

  • /projects/index.astro, which can accept /projects/?page=2 parameters
  • /projects/index.xml, (/projects.xml in build source)

/projects/[project].astro does not, the page shows a blank black screen with the text "Not Found".

rewrite from / to /projects/ only works with force = true.

headers are not applied to SSR pages at all, only pre-rendered routes.

Interestingly, in the Netlify CLI netlify dev, all SSR routes work, redirects and headers are applied, except Content-Security-Policy, which throws an error:

#

config files are attached above

#

maybe it's strange behavior due to this error while deploying:

#

using pnpm

vernal kraken
vernal pollen
#

yes, both locally and Netlify - 17.9.1

#

I will create a sandbox to recreate these problems

vernal kraken
#

Just to confirm, I don't mean the build node version. I mean the lambda execution node version. Is that the one you're referring?

vernal pollen
#

ohh, I will check

vernal kraken
#

But if you could produce a minimal repro case maybe support may help. I'd start on the forums to see if anyone else can chime in faster