Document not found when deploying the project
jamols09 opened this issue · comments
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