From 64b6287007f0b055ddc6da8bd6a8fdb8d37e9b19 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Thu, 19 Dec 2024 10:09:59 +0100 Subject: [PATCH] fix(cloud-function): fix en-us asset fallback (#12335) --- cloud-function/src/handlers/proxy-content-assets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-function/src/handlers/proxy-content-assets.ts b/cloud-function/src/handlers/proxy-content-assets.ts index fe88e3d3d912..5ed5c29ba325 100644 --- a/cloud-function/src/handlers/proxy-content-assets.ts +++ b/cloud-function/src/handlers/proxy-content-assets.ts @@ -32,7 +32,7 @@ export const proxyContentAssets = createProxyMiddleware({ ACTIVE_LOCALES.has(locale.toLowerCase()) ) { const enUsAsset = await fetch( - `${target}${req.url?.slice(1).replace(locale, "en-US")}` + `${target}${req.url?.slice(1).replace(locale, "en-us")}` ); if (enUsAsset?.ok) { res.statusCode = enUsAsset.status;