- Fix @theme module resolution for Turbopack - Add external image domain config (dl.svc.plus) - Resolve YAML file module type errors - Support RUNTIME_ENV env var for config selection - Optimize next.config.mjs for Next.js 16 compatibility Closes #upgrade-next16
51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2020",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": false,
|
|
"skipLibCheck": true,
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"strict": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noEmit": true,
|
|
"incremental": true,
|
|
"isolatedModules": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"jsx": "react-jsx",
|
|
"baseUrl": ".", // 👈 根路径基准
|
|
"paths": {
|
|
"@cms": ["cms/index.ts"], // 👈 增加这行以兼容 import "@cms"
|
|
"@cms/*": ["cms/*"],
|
|
|
|
"@components/*": ["components/*"],
|
|
"@i18n/*": ["i18n/*"],
|
|
"@lib/*": ["lib/*"],
|
|
"@types/*": ["types/*"],
|
|
"@server/*": ["server/*"],
|
|
"@extensions/*": ["src/extensions/*"],
|
|
"@theme/*": ["src/theme/*"],
|
|
"@templates/*": ["src/templates/*"],
|
|
"@src/*": ["src/*"]
|
|
},
|
|
"types": ["node"],
|
|
"plugins": [{ "name": "next" }]
|
|
},
|
|
"include": [
|
|
"app",
|
|
"cms",
|
|
"components",
|
|
"i18n",
|
|
"lib",
|
|
"ui",
|
|
"src",
|
|
"server",
|
|
"types",
|
|
".next/types/**/*.ts",
|
|
".next/dev/types/**/*.ts"
|
|
],
|
|
"exclude": ["node_modules", "config"]
|
|
}
|