Struggling to deploy a TypeScript Hapi.js server on Vercel and running into deployment issues. After trying out express tutorials with TypeScript, I resorted to tweaking my vercel.json
file:
{
"version": 2,
"builds": [
{
"src": "dist/src/index.js",
"use": "@vercel/node",
"config": { "includeFiles": ["dist/src/**"] }
}
],
"routes": [
{
"src": "/(.*)",
"dest": "dist/src/index.js"
}
]
}
However, this setup is not functioning as expected. I attempted changing the src to just /
, but it only worked for the root route, not others.
If anyone wants to take a look at the issue, here's the link to the Github repository. Appreciate any assistance in advance!