viandwi24 / nuxt3-awesome-starter

a Nuxt 3 template and boilerplate with a lot of useful features. Nuxt 3 + Tailwindcss + Nuxt Layer

Home Page:https://nuxt3-awesome-starter.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document not found when deploying the project

jamols09 opened this issue · comments

I get a document not found after uploading the project to AWS S3.

Ran the commands
pnpm build
pnpm generate

image

commented

You can't use pnpm build with pnpm generate.

pnpm generate is used to deploy a static site. Nuxt is building and generating the application in plain HTML files. This command must be used alone : the result given is already ready to use as a static hosting.

pnpm build is used to build the application with Vite or Webpack for production. It's not a static site as the previous command. After this command, you have to use pnpm start to get your application working in production.

You can learn more about these commands in the doc :
generate https://nuxt.com/docs/api/commands/generate
build https://nuxt.com/docs/api/commands/build