Skip to content

Commit

Permalink
Update Vercel configuration to specify function handler and adjust ro…
Browse files Browse the repository at this point in the history
…uting
  • Loading branch information
NateIsern committed Dec 19, 2024
1 parent 1438778 commit 4de9652
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
Expand Up @@ -3,17 +3,20 @@
"builds": [
{
"src": "cmd/bskyweb/main.go",
"use": "@vercel/go"
},
{
"src": "public/*",
"use": "@vercel/static"
"use": "@vercel/go",
"config": {
"functions": {
"main.go": {
"handler": "Handler"
}
}
}
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/public/$1"
"dest": "main.go"
}
]
}

0 comments on commit 4de9652

Please sign in to comment.