Reputation: 968
I have run the npm run build
and it has created the dist
folder in the .nuxt
directory. Do I need just the dist
folder in production, or should I include the whole .nuxt
directory?
Upvotes: 1
Views: 1175
Reputation: 968
Just checked on my server. This might be true only for Amazon Beanstalk...
After running npm run build
on my development computer, I needed the following on the server:
.nuxt/dist/
static/
server/
or server.js
- depends on setuppackage.json
package-lock.json
nuxt.config.conf
Upvotes: 0
Reputation: 2932
Yes, I think you need the whole .nuxt folder. Your web root should look something like this:
Upvotes: 1