fix: inline card server name overflow

This commit is contained in:
hamster1963
2024-12-06 09:49:02 +08:00
parent 8261bd841e
commit 560bcea0b8
5 changed files with 52 additions and 49 deletions

View File

@@ -57,38 +57,38 @@ export default defineConfig({
runtimeCaching: [
{
urlPattern: /^https:\/\/fonts\.googleapis\.com\/.*/i,
handler: 'CacheFirst',
handler: "CacheFirst",
options: {
cacheName: 'google-fonts-cache',
cacheName: "google-fonts-cache",
expiration: {
maxEntries: 10,
maxAgeSeconds: 60 * 60 * 24 * 365 // <== 365 days
maxAgeSeconds: 60 * 60 * 24 * 365, // <== 365 days
},
cacheableResponse: {
statuses: [0, 200]
}
}
statuses: [0, 200],
},
},
},
{
urlPattern: /^https:\/\/fonts\.gstatic\.com\/.*/i,
handler: 'CacheFirst',
handler: "CacheFirst",
options: {
cacheName: 'gstatic-fonts-cache',
cacheName: "gstatic-fonts-cache",
expiration: {
maxEntries: 10,
maxAgeSeconds: 60 * 60 * 24 * 365 // <== 365 days
maxAgeSeconds: 60 * 60 * 24 * 365, // <== 365 days
},
cacheableResponse: {
statuses: [0, 200]
}
}
statuses: [0, 200],
},
},
},
]
],
},
devOptions: {
enabled: true,
type: 'module'
}
type: "module",
},
}),
],
resolve: {