#Blank page after only after running generate
20 messages · Page 1 of 1 (latest)
error on console log
index.html:1 Access to script at 'file:///C:/_payload.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome-untrusted, https, edge.
Static sites still have the desire to be served by a web service. If you want to preview your static site, consider using the preview command.
Alternatively use a package such as serve
I understand now why it is not running locally
However I uploaded the file on aws S3 the now it says "documents not found"
Is this a bug? (see img)
I did execute pnpm generate with ssr:true. Am I doing this right
I am confused about this stackoverflow answer not sure if this is still relevant
https://stackoverflow.com/questions/46175023/nuxt-build-spa-vs-nuxt-generate
Why is it so difficult to deploy projects on AWS my ghod
Looks like an answer relevant to Nuxt 2
Sounds like a setup issue on your S3 side
I have no idea, error is really vague. Wish it was specific. Do I need a node JS server to run this website?
How is it that it ran fine on vercel but not on AWS ?
Not necessarily. If you’ve run generate then you’ll have all the necessary files output in .output/public. Did you upload the contents of this directory?
dist is a symlink to .output/public
basically they're the same