How to deploy this project to my own server?
kleptoplasty opened this issue · comments
I have written a blog website using this template and want to deploy it to my own server. How do I implement this?
nuxt 3 has many ways you can use it to deploy, but in the main case there are 2 ways you can do it, namely:
-
static
you can do this withpnpm generate
then nuxt will generate a dist/ folder which you can upload directly to the server.
i used this for upload demo to free static hosting like vercel, netlify, dll. -
universal
you can do it withpnpm build
, then serve to the server you can use thepnpm preview
shortcut or directly runnode app/.output/server/index.mjs