Skip to content

Commit

Permalink
chore: add comment as per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Nov 9, 2023
1 parent 50840fa commit dcacacf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/astro/src/vite-plugin-astro-server/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export async function handleRoute({
.some((segment) => {
return locales.includes(segment);
});
// Even when we have `config.base`, the pathname is still `/` because it gets stripped before
if (!pathNameHasLocale && pathname !== '/') {
return handle404Response(origin, incomingRequest, incomingResponse);
}
Expand Down

0 comments on commit dcacacf

Please sign in to comment.