fix: remove deprecated experimental.appDir and fix Makefile export target indentation
This commit is contained in:
parent
6bf2de7da3
commit
9454e3b32d
@ -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)"
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user