move user routes to end
This commit is contained in:
parent
f6bc6597c8
commit
21b9a99afa
3 changed files with 3 additions and 3 deletions
|
@ -127,9 +127,9 @@ export default function vercelEdge({
|
||||||
await writeJson(new URL(`./config.json`, _config.outDir), {
|
await writeJson(new URL(`./config.json`, _config.outDir), {
|
||||||
version: 3,
|
version: 3,
|
||||||
routes: [
|
routes: [
|
||||||
...userRoutes,
|
|
||||||
...getRedirects(routes, _config),
|
...getRedirects(routes, _config),
|
||||||
{ handle: 'filesystem' },
|
{ handle: 'filesystem' },
|
||||||
|
...userRoutes,
|
||||||
{ src: '/.*', dest: 'render' },
|
{ src: '/.*', dest: 'render' },
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
|
@ -114,9 +114,9 @@ export default function vercelServerless({
|
||||||
await writeJson(new URL(`./config.json`, _config.outDir), {
|
await writeJson(new URL(`./config.json`, _config.outDir), {
|
||||||
version: 3,
|
version: 3,
|
||||||
routes: [
|
routes: [
|
||||||
...userRoutes,
|
|
||||||
...getRedirects(routes, _config),
|
...getRedirects(routes, _config),
|
||||||
{ handle: 'filesystem' },
|
{ handle: 'filesystem' },
|
||||||
|
...userRoutes,
|
||||||
{ src: '/.*', dest: 'render' },
|
{ src: '/.*', dest: 'render' },
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
|
@ -48,7 +48,7 @@ export default function vercelStatic({ analytics }: VercelStaticConfig = {}): As
|
||||||
// https://vercel.com/docs/build-output-api/v3#build-output-configuration
|
// https://vercel.com/docs/build-output-api/v3#build-output-configuration
|
||||||
await writeJson(new URL(`./config.json`, getVercelOutput(_config.root)), {
|
await writeJson(new URL(`./config.json`, getVercelOutput(_config.root)), {
|
||||||
version: 3,
|
version: 3,
|
||||||
routes: [...userRoutes, ...getRedirects(routes, _config), { handle: 'filesystem' }],
|
routes: [...getRedirects(routes, _config), { handle: 'filesystem' }, ...userRoutes],
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue