I've created an API framework, and wanted to test it with Vercel. I figured using the cli tool and vercel dev would be the thing to do here, but it's not working.
In the Vercel dashboard for my project, I am using "Other" as the framework, and defining an output directory and build command (using bun to execute the build command).
When I run vercel dev, it fires up and says things are available at http://localhost:3000, but when I use Postman to do a GET request to /, it returns the literal javascript output from my index.js built file.
My framework is very similar to Hono, in that the main index.ts file is doing a default export with a fetch method on it. The below is the built contents of that file. When I request the API endpoint, instead of the code being executed, it is literally returning the index.js content.
Any ideas on what I'm missing?
import { Xin } from "@xinkjs/xin";const api = new Xin();api.route("/").get((event) => event.text("Hello from Xin!"));export default api;