Updates configration for Vercel and Typescript

This commit is contained in:
Alicia Sykes
2024-05-05 17:45:23 +01:00
parent e6eb91a33a
commit e255c358cb
3 changed files with 37 additions and 258 deletions

View File

@@ -1,7 +1,29 @@
{
"version": 2,
"routes": [
{
"src": "/api/(.*)",
"dest": "/api/$1.js"
}
],
"functions": {
"api/*.js": {
"maxDuration": 10
}
},
"env": {
"PLATFORM": "vercel",
"CI": "false",
"CHROME_PATH": "/usr/bin/chromium",
"NODE_VERSION": "21.x",
"GOOGLE_CLOUD_API_KEY": "",
"BUILT_WITH_API_KEY": "",
"REACT_APP_SHODAN_API_KEY": "",
"REACT_APP_WHO_API_KEY": ""
},
"build": {
"env": {
"PLATFORM": "vercel"
}
}
}