Deploy and run a serverless go fiber application on vercel. With this recipie, you can also declare your routes using the fiber router.
Make sure to add the vercel.json
file so the routing will work properly with vercel. This will rewrite all requests to the application to the api/index.go
handler where the router will take over.
{
"rewrites": [
{ "source": "(.*)", "destination": "api/index.go" }
]
}
Deploy this application to vercel by clicking the button below.