-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment
To build the /dist
folder for deployment, run
npm run build
Nuxt will automatically build the site in SPA mode.
To view the production build, run
npm run start
Then navigate to http://localhost:3000. Changes to the source files in this mode will not be seen until you run npm run build
again.
Because rhovue runs in Nuxt's SPA mode, the site can reside on static hosts such as Netlify, S3, and Cloudflare. Simply upload the contents of the /dist
folder or otherwise point the host to that folder within the repository.
Alternatively, you can place the files from inside /dist
onto a traditional web server and point your server configuration at the files inside. They'll merely be delivered as static HTML, JS, and CSS files but will work the same.
If you'd like to publish the site to a host running Node.js, you can try switching Nuxt to its isomorphic mode for SSR. This configuration is not officially supported and is not tested.