Skip to content

Commit

Permalink
Update vercel config to fix favicon not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinewi committed Nov 8, 2023
1 parent de36d29 commit 5b463bf
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"version": 2,
"builds": [
{
"src": "build/public/**",
Expand All @@ -9,15 +10,17 @@
"use": "@vercel/node"
}
],
"rewrites": [
"routes": [
{
"source": "/static/(.*)",
"destination": "build/public/static/$1"
"src": "/static/(.*)",
"headers": { "cache-control": "s-maxage=86400" },
"dest": "build/public/static/$1"
},
{
"source": "/(.*)",
"destination": "/build/server.js"
}
"src": "/(.*.(png|jpg|svg|gif))",
"dest": "build/public/$1"
},
{ "src": "/(.*)", "dest": "/build/server.js" }
],
"headers": [
{
Expand Down

0 comments on commit 5b463bf

Please sign in to comment.