Needs a static export
How to publish a Nuxt site as a static export
Nuxt renders on a server by default, but it ships a static generator that produces a publishable site.
Choosing a host rather than a command? Vue Hosting covers what it costs and what does not work here.
- Build command
- npx nuxi generate
- Folder to upload
- .output/public
Free plan, free SSL, no credit card.
-
Build the project
Run npx nuxi generate in the project folder. This is the step Droply does not do for you: we publish finished pages, we never run your build.
-
Find the output folder
The build writes a finished site to .output/public. That folder, not the project folder, is what gets uploaded.
-
Drag it in
Drop the folder (or a ZIP of it) into Droply. It is live on an HTTPS droply.id subdomain in seconds, and re-uploading publishes a new version at the same URL.
Worth knowing about Nuxt
Use
npx nuxi generate, not the usual build. The static site lands in.output/public.Server routes and anything under
server/do not come across. Data fetched at build time does.
Did an AI tool build this project?
Hosting an AI-generated website covers the question that comes before the build command: whether what you are holding is a single file or a project, and which of the two every tool actually hands back.