This commit is contained in:
Alaister Young committed 2026-04-21 23:53:28 +08:00
1 parent 6950c8a703
commit 8a28471cbe
1 file changed
+1 -10
+1 -10
View File
@@ -10,16 +10,7 @@ const path = '.vercel/output/config.json'
const config = JSON.parse(readFileSync(path, 'utf-8'))
config.routes = [
{
src: `${base}/assets/(.*)`,
headers: { 'cache-control': 'public, max-age=31536000, immutable' },
},
{ src: `${base}/api/(.*)`, dest: '/__server' },
{ src: `${base}/_serverFn/(.*)`, dest: '/__server' },
// Explicitly exclude assets with a separate rule BEFORE the catch-all
{ src: `${base}/assets/(.*)`, dest: `${base}/assets/$1` },
// Catch-all — no negative lookahead needed since assets is handled above
{ src: `${base}(/.*)?`, dest: `${base}/_shell.html` },
{ src: '/dashboard/organizations', dest: '/dashboard/_shell.html' },
{ handle: 'filesystem' },
]