Skip to content

Commit

Permalink
Update documentation for site generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mocca101 committed Mar 27, 2024
1 parent cb17dcc commit 87971f9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,22 @@ As a (currently semi, as data is still being fetched from the API) static websit
pnpm run generate
```

At the moment this will be stuck after the nuxt generate step for about 15 minutes, despite having finished generating successfully.
So alternatively you can run the following command to generate the static files:
```bash
pnpm run generate:server
```
Once it says `✔ You can now deploy .output/public to any static hosting!` you can stop the process.

Then, run the following command to generate the `index.html` to fix the current issue of the index page not being generated when using nuxt/i18n:
```bash
pnpm run generate:reroute-index
```

Now you can deploy the static files to a web server.
The generated files are in the `.output/public/` directory.

---

As a node.js server:
```bash
Expand Down

0 comments on commit 87971f9

Please sign in to comment.