I'm encountering an issue with my API, it appears that the API does not retrieve complete data when using Vercel Edge functions. Even after configuring the region to Mumbai, India (South) - bom1
.
To illustrate the problem, consider the following examples:
Vercel Edge function
Serverless function on the community based Rust runtime
Due to these issues, I am considering migrating my function from Vercel Edge to a serverless architecture.
I've explored using Hono.js, offers a handler for Node.js serverless functions. However, I'm encountering difficulties in making it work.
Below is the code snippet I've attempted for transitioning from Edge to serverless:
import { handle } from "@hono/node-server/vercel";
import { app } from "../src";
export default handle(app);
Unfortunately, I'm encountering the following error on running vc dev
:
Error: ERR_UNSUPPORTED_DIR_IMPORT /mnt/rajput-hemant/Projects/Typescript/jiosaavn-api-ts/src /mnt/rajput-hemant/Projects/Typescript/jiosaavn-api-ts/api/index.ts
Please let me know if any further information is needed to investigate and resolve this issue. Thank you!