configure next for gh pages

This commit is contained in:
Ivan Dimitrov 2023-11-19 11:00:14 +02:00
parent 5fdb0b73c6
commit 9a35263c65
3 changed files with 3 additions and 6 deletions

View File

@ -29,14 +29,10 @@ jobs:
uses: oven-sh/setup-bun@v1
- name: Setup Pages
uses: actions/configure-pages@v3
with:
static_site_generator: next
- name: Install dependencies
run: bun install
- name: Build with Next.js
run: bun run build
- name: Static HTML export with Next.js
run: bun run export
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:

View File

@ -1,4 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
output: "export"
}
module.exports = nextConfig

View File

@ -6,7 +6,6 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"export": "next export",
"lint": "next lint",
"new": "bun new.ts"
},