Nuxt static website with nuxi generate doesn't generate html files

Viewed 31

I develop a static website using Nuxt (Nuxt bridge).

In my nuxt.config.js:

{
  ...
  ssr: false,
  target: "static",
  bridge: {
    nitro: false,
  },
  buildDir: "dist",
  ...
}

In my package.json I have the following scripts :

{
  ...
  "scripts": {
    "dev": "nuxi dev --https",
    "build": "nuxi build",
    "start": "nuxi preview",
    "generate": "nuxi generate",
    ...
  },
  ...
}

So when I use yarn generate to generate the static website I get these files but no html file.

enter image description here

So i don't know how to setup a static website with this.

However, when I use npx nuxt generate I get this kind of result:

enter image description here

But I got some styles troubles and other stuff, and the documentation recommends to use nuxi generate

I feel I'm missing something here but I don't know what.

0 Answers
Related