Skip to content

Commit

Permalink
Update vercel.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwentichat authored May 11, 2023
1 parent 10a5f80 commit 0f6df7e
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
{
"version": 2,
"builds": [
{
"src": "app.js",
"use": "@vercel/node"
}
{ "src": "app/**", "use": "@vercel/node" },
{ "src": "server/**", "use": "@vercel/node" }
],
"routes": [
{
"src": "/api/(.*)",
"dest": "http://localhost:3000/api/$1"
},
{
"src": "/(.*)",
"dest": "http://localhost:3000/$1"
}
{ "src": "/(.*)", "dest": "/server/src/index.ts" }
],
"env": {
"API_KEY": "YOUR_API_KEY",
"DEBUG": "1"
"OPENAI_API_KEY": "@openai-api-key",
"ELEVENLABS_API_KEY": "@elevenlabs-api-key"
},
"envSecrets": {
"openai-api-key": {
"target": "ENV",
"from": "openaiApiKey"
},
"elevenlabs-api-key": {
"target": "ENV",
"from": "elevenlabsApiKey"
}
}
}

1 comment on commit 0f6df7e

@vercel
Copy link

@vercel vercel bot commented on 0f6df7e May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

should NOT have additional property `envSecrets`

Please sign in to comment.