project_music_player icon indicating copy to clipboard operation
project_music_player copied to clipboard

netlify deploy problem

Open uchiha-suraj opened this issue 2 years ago • 3 comments

if i switch to around you tab, it won't return any data, but in localhost it works smoothly.

around-you

if i try to refresh the page it gives me 404 error.

404

Top Artists and Top Charts tab works fine but refreshing these page will lead to 404 error, every subpath returns this 404 error.

top 404

uchiha-suraj avatar Sep 27 '22 08:09 uchiha-suraj

Create a folder called "public" in the route of your app. Like so

image

then create a file "_redirects" with no extensions inside "public". In that file put the following exactly as it is:

/* /index.html 200

Save. Build and deploy. Let me know if this worked for you.

anersisian avatar Oct 03 '22 03:10 anersisian

yeah, it worked. Thanks dude.. 😇 also the api in 'around you' tab is not returning any data but it's working perfectly fine in localhost, if u also faced this problem then plz let me know how you resolved this issue.

uchiha-suraj avatar Oct 03 '22 17:10 uchiha-suraj

Hi there! Same issue here with Around You. Anyone found any solutions?

tynoschuck avatar Jan 13 '23 18:01 tynoschuck