mirror of
https://github.com/RSSNext/Folo.git
synced 2026-10-16 20:51:43 +08:00
Merge remote-tracking branch 'origin/main' into sync/stable-2
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Follow",
|
||||
"type": "module",
|
||||
"version": "0.1.1-beta.0",
|
||||
"version": "0.1.1-beta.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.11.0",
|
||||
"description": "Next generation information browser",
|
||||
|
||||
@@ -13,9 +13,7 @@ export function createDependencyChunksPlugin(dependencies: string[][]): Plugin {
|
||||
outputConfig.manualChunks = outputConfig.manualChunks || {}
|
||||
outputConfig.assetFileNames = "assets/[name].[hash:6][extname]"
|
||||
outputConfig.chunkFileNames = (chunkInfo) => {
|
||||
return chunkInfo.name.startsWith("vendor/")
|
||||
? "[name].[hash:9].js"
|
||||
: "assets/[name].[hash].js"
|
||||
return chunkInfo.name.startsWith("vendor/") ? "[name]-[hash].js" : "assets/[name]-[hash].js"
|
||||
}
|
||||
|
||||
const manualChunks = Array.isArray(output) ? output[0].manualChunks : output.manualChunks
|
||||
|
||||
+3
-24
@@ -26,14 +26,14 @@
|
||||
},
|
||||
{
|
||||
"source": "/external-dist/:path*",
|
||||
"destination": "https://follow-external-ssr.vercel.app/:path*"
|
||||
"destination": "https://follow-external-ssr.vercel.app/external-dist/:path*"
|
||||
},
|
||||
{
|
||||
"source": "/dist-external/:path*",
|
||||
"destination": "https://follow-external-ssr.vercel.app/dist-external/:path*"
|
||||
},
|
||||
{
|
||||
"source": "/((?!assets|vendor|locales|dist-external/).*)",
|
||||
"source": "/((?!assets|vendor|locales|dist-external|external-dist/).*)",
|
||||
"destination": "/index.html"
|
||||
}
|
||||
],
|
||||
@@ -76,28 +76,7 @@
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "public, max-age=43200, stale-while-revalidate=3600, immutable"
|
||||
},
|
||||
{
|
||||
"key": "CDN-Cache-Control",
|
||||
"value": "max-age=604800, stale-while-revalidate=3600"
|
||||
},
|
||||
{
|
||||
"key": "Vercel-CDN-Cache-Control",
|
||||
"value": "max-age=604800"
|
||||
},
|
||||
{
|
||||
"key": "Cloudflare-CDN-Cache-Control",
|
||||
"value": "max-age=604800"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"source": "/dist-external/(.*)",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "public, max-age=43200, stale-while-revalidate=3600, immutable"
|
||||
"value": "public, max-age=604800, immutable"
|
||||
},
|
||||
{
|
||||
"key": "CDN-Cache-Control",
|
||||
|
||||
Reference in New Issue
Block a user