From e1c9fb741e158ab7f20f4fcd556a8e133de65552 Mon Sep 17 00:00:00 2001 From: pieh Date: Fri, 26 Jul 2024 16:49:13 +0200 Subject: [PATCH] test: do not localize data requests --- edge-runtime/lib/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}` }