It seems like Vercel has already implemented correct builder for ElysiaJS now. After testing my project today, I found out there’s a new option here:
After choosing Elysia, I can now build my project without additional build script.
But currently the typescript bundler or compile step still doesn’t transform TS into commonjs file. I need to use Bun runtime to run the file.
Adding following lines to vercel.json does the trick:
{
"bunVersion": "1.x"
}
