更新。Gitignore和next.js配置自定义构建输出目录

在next.config.mjs中将build输出目录改为next
-更新。Gitignore以反映新的输出目录
—调整了tsconfig。Json包含next/types*。为更好的类型支持
This commit is contained in:
宇阳
2025-12-03 21:58:01 +08:00
parent 372d4f815d
commit 578426488e
3 changed files with 5 additions and 2 deletions

2
.gitignore vendored
View File

@@ -10,7 +10,7 @@
/coverage
# next.js
/.next/
/next/
/out/
# production

View File

@@ -1,5 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// 自定义构建输出目录
distDir: 'next',
// 关闭严格模式
reactStrictMode: false,
// 配置图片来源

View File

@@ -29,9 +29,10 @@
"target": "ES2017"
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"next-env.d.ts",
"next/types/**/*.ts",
".next/types/**/*.ts"
],
"exclude": [