Skip to content

Commit 891e1bb

Browse files
committed
fix: return 404 on missing assets (@fehmer)
1 parent 9896c18 commit 891e1bb

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

frontend/firebase.json

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,11 @@
44
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
55
"rewrites": [
66
{
7-
"source": "/privacy-policy",
8-
"destination": "/privacy-policy.html"
7+
"source": "/@(js|about|challenges|css|fonts|funbox|images|languages|layouts|quotes|sound|themes|webfonts|webfonts-preview)/**",
8+
"destination": "/404.html"
99
},
1010
{
11-
"source": "/terms-of-service",
12-
"destination": "/terms-of-service.html"
13-
},
14-
{
15-
"source": "/security-policy",
16-
"destination": "/security-policy.html"
17-
},
18-
{
19-
"source": "/adtest",
20-
"destination": "/adtest.html"
21-
},
22-
{
23-
"source": "/test",
24-
"destination": "/index.html"
25-
},
26-
{
27-
"source": "!/@(js|about|challenges|css|fonts|funbox|images|languages|layouts|quotes|sound|themes|webfonts)/**",
11+
"source": "**",
2812
"destination": "/index.html"
2913
}
3014
],

0 commit comments

Comments
 (0)