When going to production you have several options with this template. Let's cover all of them.
Before going to production make sure, that you have checked your modules' size with
npm run build --analyze.
spaonly when you do not need server-side rendering. By default, we use
You can also provide
--spaflag via command line:
npm run build --spa.
The easiest way to deploy your application is just pushing some static files to your web server.
npm run generateto create static files. Then just deploy them.
There are a lot of tutorials about it. Here's [an example][do-example].
We have already mentioned some downsides of
dockerdeployment. But sometimes you really need the whole power of
nuxtand its server-side rendering. Or maybe you already have a micro-services architecture.
Very easy. Some of them are totally free.
We recommend to verify that everything is working fine in production by running a set of automated audits: