#SSR working locally but not in production

4 messages · Page 1 of 1 (latest)

terse lance
#

I developed directory listing site and set it as an SSR site. I added export const prerender = false; in [slug].astro where listings are dynamically generated.

Locally, everything works beautifully as expected, but once I deploy to production in Netlify, I get 404 on some of the existing listings.

I tried "force clearing" the Netlify cache by various suggestions on the web, reinstalled the env variables on Netlify, etc but can't figure out what the issue might be.

Any tips are appreciated.

fallow pollen
#

Do you have a repo we could look at?

silver hamlet
#

Have you added the netlify ssr adapter? And not only set output to server?

terse lance
#

Thanks for the assist gents. The issue was related to overcomplicating the requirements and not QAing properly. I had some other logic as well that was checking and taking actions based on the creator of the listing. Once I removed the logic, it worked fine.