configure next for gh pages
This commit is contained in:
parent
5fdb0b73c6
commit
9a35263c65
4
.github/workflows/nextjs.yml
vendored
4
.github/workflows/nextjs.yml
vendored
@ -29,14 +29,10 @@ jobs:
|
|||||||
uses: oven-sh/setup-bun@v1
|
uses: oven-sh/setup-bun@v1
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v3
|
uses: actions/configure-pages@v3
|
||||||
with:
|
|
||||||
static_site_generator: next
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install
|
||||||
- name: Build with Next.js
|
- name: Build with Next.js
|
||||||
run: bun run build
|
run: bun run build
|
||||||
- name: Static HTML export with Next.js
|
|
||||||
run: bun run export
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v2
|
uses: actions/upload-pages-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {}
|
const nextConfig = {
|
||||||
|
output: "export"
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = nextConfig
|
module.exports = nextConfig
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"export": "next export",
|
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"new": "bun new.ts"
|
"new": "bun new.ts"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user