How can I run a static NUXT project without a server?
That's what I did:
I created a new project (without any line of code) with VUETIFY
I ran the command npn run generate
I went to dist/index.html
The project opens but no link is clicked
I added the line in nuxt.config.js
route: { base: '/ProjectName/' },
I ran generate again
The links are still not clicked, And if there is a clicked link it points to drive c
Try to switch to hash mode in your router! (https://v2.nuxt.com/docs/configuration-glossary/configuration-router/#mode)
In your nuxt.config.js it should look like this:
Now you should be able to use "npm run generate" and just open the index.html file in your "dist" directory.