Skip to content

Commit 45ee638

Browse files
committed
redirect bad traffic to non existent function
1 parent a76b89e commit 45ee638

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

firebase.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"hosting": {
33
"public": "packages/app/dist",
4-
"ignore": [
5-
"firebase.json",
6-
"**/.*",
7-
"**/node_modules/**"
8-
],
4+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
95
"rewrites": [
106
{
117
"source": "**",
128
"destination": "/index.html"
9+
},
10+
{
11+
"source": "/api/v1/wakatime/users/current/heartbeats",
12+
"function": "blockWakatimeRequests"
1313
}
1414
]
1515
}

0 commit comments

Comments
 (0)