[WIP] Update Musicanaz frontend to utilize improved mpyapi#1
Merged
Conversation
Copilot stopped work on behalf of
Wilooper due to an error
March 4, 2026 14:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
app/api/musiva/artist-songs/route.ts— default limit 100→500, pass throughalbumsfieldapp/api/musiva/artist-albums/route.ts— new proxy for/artist/{id}/albumsapp/api/musiva/trending/route.ts— switch fromtest-0k.onrender.comto own mpyapiapp/api/trending/route.ts— switch fromgaanapy-0h31.onrender.comto own mpyapiapp/artist/page.tsxAllSongsPanel— fetch limit 100→500Original prompt
Overview
Update the Musicanaz frontend (Next.js/TypeScript) to:
/chartsand/trendingendpointsThe backend base URL used throughout is:
https://turbo-14uz.onrender.comChanges Required
1. Update
app/api/musiva/artist-songs/route.tsCurrent code (fetches from mpyapi):
Updated code — increase default limit to 500 (mpyapi now supports up to 5000) and pass through the new
albumsfield:2. Create NEW
app/api/musiva/artist-albums/route.tsCreate a new API route to proxy the new mpyapi
/artist/{id}/albumsendpoint:3. Replace
app/api/musiva/trending/route.ts— Use own mpyapi instead of external APICurrent code uses
https://test-0k.onrender.com(external, unreliable).Replace the entire file to use the project's own mpyapi backend at
https://turbo-14uz.onrender.com: