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

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 with pnpm 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 with pnpm build, then serve to the server you can use the pnpm preview shortcut or directly run node app/.output/server/index.mjs