Avraham
Avraham

Reputation: 968

Deploying Nuxt Universal project - is the whole .nuxt folder necessary?

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

Answers (2)

Avraham
Avraham

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 setup
  • package.json
  • package-lock.json
  • nuxt.config.conf

Upvotes: 0

Rikard Askelöf
Rikard Askelöf

Reputation: 2932

Yes, I think you need the whole .nuxt folder. Your web root should look something like this:

  • .nuxt
  • static
  • nuxt.config.js
  • package.json
  • server.js

Upvotes: 1

Related Questions