Skip to content

Commit

Permalink
Merge branch 'master' into eliang/new-nav
Browse files Browse the repository at this point in the history
  • Loading branch information
taneliang committed Jan 27, 2021
2 parents 3f3d9ae + 886c3c2 commit 27ec54c
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions website/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,40 @@
"value": "public, max-age=2629800, immutable"
}
]
},
{
"source": "/api(/.*)?",
"headers": [
{
"key": "Access-Control-Allow-Credentials",
"value": "true"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "GET,OPTIONS,PATCH,DELETE,POST,PUT"
},
{
"key": "Access-Control-Allow-Headers",
"value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
}
]
}
],
"rewrites": [
{
"source": "/api(/.*)?",
"destination": "https://api.nusmods.com$1"
}
],
"redirects": [
{ "source": "/api(/.*)?", "destination": "https://api.nusmods.com$1", "permanent": false },
{ "source": "/news(/.*)?", "destination": "https://blog.nusmods.com$1", "permanent": false }
{
"source": "/news(/.*)?",
"destination": "https://blog.nusmods.com$1",
"permanent": false
}
]
}

0 comments on commit 27ec54c

Please sign in to comment.