Add comment

pull/2221/head
Jérémy Rialland 2022-07-07 12:22:29 +02:00 committed by Jérémy Rialland
parent e63b75688a
commit a033b29403
1 changed files with 3 additions and 1 deletions

View File

@ -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)