diff --git a/edge-runtime/lib/util.ts b/edge-runtime/lib/util.ts index 28fea98eaa..26677b47d1 100644 --- a/edge-runtime/lib/util.ts +++ b/edge-runtime/lib/util.ts @@ -36,7 +36,7 @@ export const addLocale = (path: string, locale?: string) => { path.toLowerCase() !== `/${locale.toLowerCase()}` && !path.toLowerCase().startsWith(`/${locale.toLowerCase()}/`) && !path.startsWith(`/api/`) && - !path.startsWith(`/_next/static/`) + !path.startsWith(`/_next/`) ) { return `/${locale}${path}` }