mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
feat: web cache (#12403)
This commit is contained in:
@@ -3,5 +3,13 @@
|
||||
"404": {
|
||||
"rewrite": "/docs/404.html"
|
||||
}
|
||||
},
|
||||
"routes": [
|
||||
{
|
||||
"route": "/*.{jpg,gif,png,ico,svg,css,scss,js,webp,webmanifest}",
|
||||
"headers": {
|
||||
"cache-control": "public, max-age=604800, immutable"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -16,6 +16,6 @@ export default defineConfig({
|
||||
port: 3000,
|
||||
},
|
||||
build: {
|
||||
sourcemap: true,
|
||||
sourcemap: false,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user