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 {