diff --git a/next.config.js b/next.config.js index 45d8f91c..7fbfd29c 100644 --- a/next.config.js +++ b/next.config.js @@ -3,6 +3,8 @@ * @type {import('next').NextConfig} **/ const nextConfig = { + output: 'export', + distDir: 'docs', reactStrictMode: true, webpack(config, { isServer }) { if (isServer) { diff --git a/package.json b/package.json index 9dc2d91f..9b4e26da 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "run-s prebuild:* build:next", "start": "next start", "lint": "next lint", - "build:next": "next build && next export -o docs", + "build:next": "next build", "prebuild": "run-s prebuild:*", "prebuild:clean": "rimraf ./tmp", "prebuild:init": "mkdir ./tmp", @@ -78,6 +78,6 @@ "*.**": "prettier --check --ignore-unknown" }, "volta": { - "node": "18.19.1" + "node": "20.3.0" } }