Skip to content

Commit

Permalink
build: generate static with nuxi
Browse files Browse the repository at this point in the history
  • Loading branch information
cdfmlr committed Sep 19, 2024
1 parent ed21e1f commit dbcae45
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nuxtjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Static HTML export with Nuxt
run: ${{ steps.detect-package-manager.outputs.manager }} run generate
run: ${{ steps.detect-package-manager.outputs.manager }} run generate-static
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ bun run preview

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

## Static Site Generation

Docs: [Static Hosting](https://nuxt.com/docs/getting-started/deployment#static-hosting)

```bash
pnpm nuxi generate
# or
pnpm run generate-static
```

## Template

This site is built with [Gr33nW33n/nuxtship-template](https://github.com/Gr33nW33n/nuxtship-template)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"generate-static": "nuxi generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
Expand Down

0 comments on commit dbcae45

Please sign in to comment.