fix: do not include filesystem handler in user routes

This commit is contained in:
Nate Moore 2023-03-13 14:40:49 -05:00
parent 8c2118fd88
commit f6bc6597c8

View file

@ -12,5 +12,6 @@ export async function getRoutesFromVercelJSON(config: AstroConfig): Promise<Verc
if (!vercelConfig) return []
const { routes } = getTransformedRoutes(vercelConfig);
return routes ?? [];
// First route is `filesystem`, which we already inject
return routes?.slice(1) ?? [];
}