From 4c199f2a89274c177a9c5bc653a05086f931ba98 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Mon, 16 Dec 2024 14:26:14 +0100 Subject: [PATCH] fix(dev-server): fix top level assets with rari (#12304) --- server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.ts b/server/index.ts index 77c9c4e604a3..a98c464e4854 100644 --- a/server/index.ts +++ b/server/index.ts @@ -513,7 +513,7 @@ if (RARI) { "/en-US/community/index.json", "/en-US/plus/docs/*", "/en-US/observatory/docs/*", - "/:locale/", + "/:locale([a-z]{2}(?:(?:-[A-Z]{2})?))/", ], async (req, res) => { try {