Skip to content

Commit

Permalink
update route
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenthphung committed Feb 23, 2024
1 parent a4c2745 commit 8157455
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
{
"routes": [
{
"src": "/api/(.*)",
"dest": "/api/$1"
},
{
"src": "/(.*)",
"dest": "/index.html"
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": {
"distDir": "build"
}
]
}
],
"routes": [
{
"src": "/(.*)",
"headers": {
"cache-control": "s-maxage=1,stale-while-revalidate"
},
"dest": "/index.html"
}
],
"env": {
"REACT_APP_YELP_API_KEY": "@yelp_api_key"
},
"build": {
"env": {
"REACT_APP_YELP_API_KEY": "@yelp_api_key"
}
}
}

0 comments on commit 8157455

Please sign in to comment.