diff --git a/.gitignore b/.gitignore index 885d213..05c2bee 100755 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ /coverage # next.js -/.next/ +/next/ /out/ # production diff --git a/next.config.mjs b/next.config.mjs index 35313ea..4a1f1d8 100755 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,5 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + // 自定义构建输出目录 + distDir: 'next', // 关闭严格模式 reactStrictMode: false, // 配置图片来源 diff --git a/tsconfig.json b/tsconfig.json index f48e7ee..afe1f10 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,9 +29,10 @@ "target": "ES2017" }, "include": [ - "next-env.d.ts", "**/*.ts", "**/*.tsx", + "next-env.d.ts", + "next/types/**/*.ts", ".next/types/**/*.ts" ], "exclude": [