rajput-hemant / jiosaavn-api-ts Goto Github PK
View Code? Open in Web Editor NEW๐ต A simple wrapper for the JioSaavn API powered by Hono.js ๐ฅ.
Home Page: https://jiosaavn.rajputhemant.me
License: MIT License
๐ต A simple wrapper for the JioSaavn API powered by Hono.js ๐ฅ.
Home Page: https://jiosaavn.rajputhemant.me
License: MIT License
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:
/modules
The mixes
and city_mod
fields are not populated.
/song/recommend
The Edge version of the API does not provide recommendations for certain songs.
/modules
Verify if the mixes
and city_mod
fields are populated.
/song/recommend
Confirm that the serverless version of the API successfully provides recommendations for the same songs.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.