fix: remove deprecated experimental.appDir and fix Makefile export target indentation

This commit is contained in:
Haitao Pan 2025-06-18 21:03:30 +08:00
parent 6bf2de7da3
commit 9454e3b32d
2 changed files with 8 additions and 7 deletions

View File

@ -23,8 +23,8 @@ build:
yarn next build
export:
@echo "📦 Exporting homepage static site to ./out ..."
yarn next build
@echo "📦 Exporting homepage static site to ./out ..."
yarn next build
clean:
@echo "🧹 Cleaning .next and out directories..."
@ -32,3 +32,4 @@ clean:
info:
@echo "🧾 Node.js version: $(NODE_VERSION)"

View File

@ -1,11 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export', // 开启静态导出支持
output: 'export', // 开启静态导出
reactStrictMode: true,
experimental: {
appDir: true // ✅ 启用 App Router 模式
}
// 移除 experimental.appDir
// experimental: {
// appDir: true
// }
}
module.exports = nextConfig