I'm using Hono to create a simple api server. But I want to use /src as my main folder instead of /api. So, after a lot of searching I found that by using rewrites I can do just that.
But now the problem is that running vercel dev and making a request will download the index.ts file located in my src folder instead of running the requests... note that using the /api folder worked perfectly so it's not how I wrote my code.
What should I do???
Here is the repo https://github.com/WerdoxDev/hono-on-vercel