From a033b294034ba52d0263ac5744046a899a304d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Thu, 7 Jul 2022 12:22:29 +0200 Subject: [PATCH] Add comment --- site/vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/vite.config.ts b/site/vite.config.ts index b4760974c..af3e4a688 100644 --- a/site/vite.config.ts +++ b/site/vite.config.ts @@ -185,7 +185,9 @@ function multipleSPA(options: MultipleSPAOptions): Plugin { if (url && ['/', '/index.html'].includes(url)) { res.writeHead(302, { Location: '/' + options.defaultSite }).end() - } else if ( + } + // this condition is for the start:netlify script to match /mon-entreprise or /infrance + else if ( firstLevelDir && url && Object.keys(options.sites)