Skip to content

Commit

Permalink
chore: next.js config for v14 SSG
Browse files Browse the repository at this point in the history
  • Loading branch information
ikmnjrd committed Mar 9, 2024
1 parent f928e0a commit 87378d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* @type {import('next').NextConfig}
**/
const nextConfig = {
output: 'export',
distDir: 'docs',
reactStrictMode: true,
webpack(config, { isServer }) {
if (isServer) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -78,6 +78,6 @@
"*.**": "prettier --check --ignore-unknown"
},
"volta": {
"node": "18.19.1"
"node": "20.3.0"
}
}

0 comments on commit 87378d2

Please sign in to comment.