0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

Handle base

This commit is contained in:
Matt Kane 2024-12-13 12:13:08 +00:00
parent 3e00a3d2c0
commit c3d9ef1229

View file

@ -506,7 +506,7 @@ export async function createRouteManifest(
}
const redirectRoutes = createRedirectRoutes(params, routeMap, logger);
if (dev) {
if (dev && !config.base) {
// Add a redirect for `//` to `/`. We only do this in dev because different platforms
// vary a lot in how or whether they handle this sort of redirect, so we leave it to the adapter
redirectRoutes.push({