mirror of
https://github.com/LiuYuYang01/ThriveX-Blog.git
synced 2026-07-01 02:24:31 +08:00
更新。Gitignore和next.js配置自定义构建输出目录
在next.config.mjs中将build输出目录改为next -更新。Gitignore以反映新的输出目录 —调整了tsconfig。Json包含next/types*。为更好的类型支持
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -10,7 +10,7 @@
|
||||
/coverage
|
||||
|
||||
# next.js
|
||||
/.next/
|
||||
/next/
|
||||
/out/
|
||||
|
||||
# production
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
// 自定义构建输出目录
|
||||
distDir: 'next',
|
||||
// 关闭严格模式
|
||||
reactStrictMode: false,
|
||||
// 配置图片来源
|
||||
|
||||
@@ -29,9 +29,10 @@
|
||||
"target": "ES2017"
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"next-env.d.ts",
|
||||
"next/types/**/*.ts",
|
||||
".next/types/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
|
||||
Reference in New Issue
Block a user