next.js搭建路由01

This commit is contained in:
2025-10-20 16:19:41 +08:00
parent 727ec66189
commit 5c783c73e1
333 changed files with 7568 additions and 7091 deletions

View File

@@ -2,44 +2,83 @@
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"jsx": "preserve",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
/* Path mapping */
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"@config/*": ["./src/config/*"],
"@router/*": ["./src/router/*"],
"@api/*": ["./src/apis/*"],
"@stores/*": ["./src/stores/*"],
"@pages/*": ["./src/pages/*"],
"@components/*": ["./src/components/*"],
"@utils/*": ["./src/utils/*"],
"@types/*": ["./src/types/*"],
"@assets/*": ["./src/assets/*"]
}
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }],
"paths": {
"@/*": [
"./src/*"
],
"@config/*": [
"./src/config/*"
],
"@router/*": [
"./src/router/*"
],
"@api/*": [
"./src/apis/*"
],
"@stores/*": [
"./src/stores/*"
],
"@pages/*": [
"src/app/*"
],
"@components/*": [
"./src/components/*"
],
"@utils/*": [
"./src/utils/*"
],
"@types/*": [
"./src/types/*"
],
"@assets/*": [
"./src/assets/*"
]
},
"allowJs": true,
"incremental": true,
"esModuleInterop": true,
"plugins": [
{
"name": "next"
}
]
},
"include": [
"src",
".next/types/**/*.ts"
],
"references": [
{
"path": "./tsconfig.node.json"
}
}
],
"paths": {
"@/*": [
"./src/*"
]
},
"exclude": [
"node_modules"
]
}