mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 09:11:38 +00:00
Switch runtime to edge
Format code
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
out
|
out
|
||||||
.next
|
.next
|
||||||
|
public
|
||||||
|
@ -10,7 +10,7 @@ const nextConfig = {
|
|||||||
output: 'standalone',
|
output: 'standalone',
|
||||||
images: isExport ? { unoptimized: true } : {},
|
images: isExport ? { unoptimized: true } : {},
|
||||||
experimental: {
|
experimental: {
|
||||||
// runtime: 'nodejs',
|
runtime: 'experimental-edge',
|
||||||
largePageDataBytes: 512 * 1000,
|
largePageDataBytes: 512 * 1000,
|
||||||
},
|
},
|
||||||
compiler: {
|
compiler: {
|
||||||
|
@ -2,11 +2,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"target": "es6",
|
"target": "es6",
|
||||||
"lib": [
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"dom",
|
|
||||||
"dom.iterable",
|
|
||||||
"esnext"
|
|
||||||
],
|
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
@ -19,14 +15,8 @@
|
|||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
// "typeRoots": ["./types", "./node_modules/@types"],
|
// "typeRoots": ["./types", "./node_modules/@types"],
|
||||||
"incremental": true,
|
"incremental": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||||
"next-env.d.ts",
|
"exclude": ["node_modules"]
|
||||||
"**/*.ts",
|
|
||||||
"**/*.tsx"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"node_modules"
|
|
||||||
]
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user