Skip to content

Commit bab9e87

Browse files
committed
x
1 parent fd76952 commit bab9e87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

generate-firebase-json.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ const generateFirebaseJson = (
3838
$,
3939
compilation,
4040
) => {
41-
const sourcesGlob = htmlPluginData.outputName
41+
const sourceGlob = htmlPluginData.outputName
4242
.replace(/404\.html/, '**/*')
43-
.replace(/index\.html/, '(index.html)?')
43+
.replace(/index\.html/, '/(index.html)?')
4444
.replace(/\.html/, '(\\.html)?')
4545
cspHeadersForSourceGlob = cspHeadersForSourceGlob.concat(
4646
[
4747
{
48-
source: `^/${sourcesGlob}$`,
48+
source: sourceGlob,
4949
headers: [
5050
{
5151
key: 'Content-Security-Policy',

0 commit comments

Comments
 (0)