https://nuxtjs.org/guide/commands#development-environment
There is no mention of the files required by Nuxt when deploying it to live hosting.
Using Nuxt CLI, creates several empty folders such as
assets components layouts pages server
Using npm build .nuxt folder is created - do i simply upload the content of the full folder or are the dist folder….????
I have tried several combinations of uploading the full contents of .nuxt vs only parts. I havent had any luck.
nuxt folder: The router. js file is the generated router file that Nuxt generates for you when you put . vue files inside the pages folder. You can use this file for debugging for when you want to look up which routes are generated for vue-router and find out the names of a specific route.
To get started quickly we can use the create-nuxt-app. I'm going to use yarn, but you could use NPM or NPX. In our terminal, type yarn create nuxt-app. followed by the name of your application.
You need .nuxt folder, static folder, your nuxt.config.js and a node_modules directory for deployment in universal mode
For deploying on plesk you can see this example https://github.com/pi0/nuxt-plesk-example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With