Skip to content

Commit

Permalink
first committtt
Browse files Browse the repository at this point in the history
  • Loading branch information
danuseta committed Dec 25, 2024
1 parent 3880a24 commit 01a7ba4
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@
},
{
"source": "/sw.js",
"headers": {
"cache-control": "public, max-age=0, must-revalidate",
"Service-Worker-Allowed": "/"
},
"destination": "client/sw.js"
"destination": "client/sw.js",
"has": [
{
"type": "header",
"key": "Service-Worker-Allowed",
"value": "/"
}
]
},
{
"source": "/(.*)\\.(?:js|css|png|jpg|jpeg|gif|ico|json|svg)$",
Expand All @@ -33,7 +36,25 @@
{
"source": "^/$|^/artikel$|^/tentang-kami$|^/register$|^/login$|^/forgot-password$|^/pelaporan(/.*)?$|^/admin(/.*)?$",
"destination": "client/public/index.html"
},
{
"source": "/(.*)",
"destination": "client/public/index.html"
}
],
"headers": [
{
"source": "/sw.js",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=0, must-revalidate"
},
{
"key": "Service-Worker-Allowed",
"value": "/"
}
]
}
]
}

}

0 comments on commit 01a7ba4

Please sign in to comment.