From 87378d2bc8cc152bcd9f1979c1c5fdc5adcd8951 Mon Sep 17 00:00:00 2001 From: ike <40803799+ikmnjrd@users.noreply.github.com> Date: Sun, 10 Mar 2024 00:56:33 +0900 Subject: [PATCH] chore: next.js config for v14 SSG --- next.config.js | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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" } }