diff --git a/package.json b/package.json index 0d2bc9357..0a704dba7 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/plugins/vite/deps.ts b/plugins/vite/deps.ts index 2c01f2d2c..a152f20a2 100644 --- a/plugins/vite/deps.ts +++ b/plugins/vite/deps.ts @@ -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 diff --git a/vercel.json b/vercel.json index 0e91a0c79..703a02176 100644 --- a/vercel.json +++ b/vercel.json @@ -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",