Closed nicksmithr closed 2 months ago
Hi @nicksmithr!
When using SSR, astro preview
currently only works with the node adapter: https://docs.astro.build/en/reference/cli-reference/#astro-preview.
However, you can use the Netlify CLI to preview production builds locally: https://cli.netlify.com/commands/serve/.
Hope that helps.
P.S. We're hoping to make this more seamless in the future!
Hey Netlifolk, Thanks for the template, it's really awesome! I'm having a few issues now I'm actually building a full site with it. I've tried deploying the site and it's 404ing.
Update: So I tried previewing, and saw this issue. I've now got the site deployed, but would be helpful to have the preview function!
——— OLD CONTEXT
It seems to be building fine, and fine in dev, but the deployment is resulting in page not found. And there's no way to preview if it's the build process that's broken or my netlify configuration.
My
./dist
shape.It may be because I updated the
astro.config.mjs
to resolve a vite issue, where I was getting:Here's the update Astro config:
My full Astro Config:
My packages.json:
Appreciate your help 💙