mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
Handle base
This commit is contained in:
parent
3e00a3d2c0
commit
c3d9ef1229
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue