Switch runtime to edge

Format code
This commit is contained in:
DefectingCat
2022-11-01 11:44:44 +08:00
parent 502e624d90
commit dcec7044c7
6 changed files with 65 additions and 74 deletions

View File

@ -1,3 +1,4 @@
node_modules
out
.next
.next
public

View File

@ -1,69 +1,69 @@
.container {
position: absolute;
bottom: 10px;
right: 30px;
position: absolute;
bottom: 10px;
right: 30px;
border-radius: 3px;
background: #000;
color: #fff;
font: initial;
cursor: initial;
letter-spacing: initial;
text-shadow: initial;
text-transform: initial;
visibility: initial;
border-radius: 3px;
background: #000;
color: #fff;
font: initial;
cursor: initial;
letter-spacing: initial;
text-shadow: initial;
text-transform: initial;
visibility: initial;
padding: 7px 10px 8px 10px;
align-items: center;
box-shadow: 0 11px 40px 0 rgba(0, 0, 0, 0.25),
padding: 7px 10px 8px 10px;
align-items: center;
box-shadow: 0 11px 40px 0 rgba(0, 0, 0, 0.25),
0 2px 10px 0 rgba(0, 0, 0, 0.12);
display: none;
opacity: 0;
transition: opacity 0.1s ease, bottom 0.1s ease;
animation: fade-in 0.1s ease-in-out;
display: none;
opacity: 0;
transition: opacity 0.1s ease, bottom 0.1s ease;
animation: fade-in 0.1s ease-in-out;
}
.container.visible {
display: flex;
display: flex;
}
.container.building {
bottom: 20px;
opacity: 1;
bottom: 20px;
opacity: 1;
}
.icon-wrapper {
width: 16px;
height: 16px;
width: 16px;
height: 16px;
}
.icon-wrapper > svg {
width: 100%;
height: 100%;
width: 100%;
height: 100%;
}
.icon-group {
animation: strokedash 1s ease-in-out both infinite;
animation: strokedash 1s ease-in-out both infinite;
}
@keyframes fade-in {
from {
bottom: 10px;
opacity: 0;
}
to {
bottom: 20px;
opacity: 1;
}
from {
bottom: 10px;
opacity: 0;
}
to {
bottom: 20px;
opacity: 1;
}
}
@keyframes strokedash {
0% {
stroke-dasharray: 0 226;
}
80%,
100% {
stroke-dasharray: 659 226;
}
0% {
stroke-dasharray: 0 226;
}
80%,
100% {
stroke-dasharray: 659 226;
}
}

View File

@ -1,16 +1,16 @@
.wrapper {
@apply overflow-hidden rounded-lg;
@apply mb-8 shadow-lg;
font-size: 16px;
/* box-shadow: 0 13px 27px -5px rgb(50 50 93 / 25%),
@apply overflow-hidden rounded-lg;
@apply mb-8 shadow-lg;
font-size: 16px;
/* box-shadow: 0 13px 27px -5px rgb(50 50 93 / 25%),
0 8px 16px -8px rgb(0 0 0 / 30%), 0 -6px 16px -6px rgb(0 0 0 / 3%); */
}
.wrapper pre {
margin: unset;
border-radius: unset;
margin: unset;
border-radius: unset;
}
.wrapper .loading span {
margin: unset;
margin: unset;
}

View File

@ -1,16 +1,16 @@
.imageContainer {
width: 100%;
padding: 10px 0;
position: relative;
width: 100%;
padding: 10px 0;
position: relative;
}
.imageContainer > span {
position: unset !important;
position: unset !important;
}
.imageContainer .image {
object-fit: contain;
width: 100% !important;
position: relative !important;
height: unset !important;
object-fit: contain;
width: 100% !important;
position: relative !important;
height: unset !important;
}

View File

@ -10,7 +10,7 @@ const nextConfig = {
output: 'standalone',
images: isExport ? { unoptimized: true } : {},
experimental: {
// runtime: 'nodejs',
runtime: 'experimental-edge',
largePageDataBytes: 512 * 1000,
},
compiler: {

View File

@ -2,11 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"target": "es6",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@ -19,14 +15,8 @@
"isolatedModules": true,
"jsx": "preserve",
// "typeRoots": ["./types", "./node_modules/@types"],
"incremental": true,
"incremental": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}