fix: do not include filesystem handler in user routes
This commit is contained in:
parent
8c2118fd88
commit
f6bc6597c8
1 changed files with 2 additions and 1 deletions
|
@ -12,5 +12,6 @@ export async function getRoutesFromVercelJSON(config: AstroConfig): Promise<Verc
|
||||||
if (!vercelConfig) return []
|
if (!vercelConfig) return []
|
||||||
const { routes } = getTransformedRoutes(vercelConfig);
|
const { routes } = getTransformedRoutes(vercelConfig);
|
||||||
|
|
||||||
return routes ?? [];
|
// First route is `filesystem`, which we already inject
|
||||||
|
return routes?.slice(1) ?? [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue