MadeBaruna / paimon-moe

Your best Genshin Impact companion! Help you plan what to farm with ascension calculator and database. Also track your progress with todo and wish counter.
https://paimon.moe
MIT License
1.4k stars 269 forks source link

Unexpected token 'T', "The page c"... is not valid JSON #582

Open trvhung opened 2 months ago

trvhung commented 2 months ago

a I have this problem after deploying to vercel, error file /characters/build/id.json does not exist. Refresh it and it displays normally but when clicking SPA it does not work. Can you help me, thank you

jogerj commented 2 months ago

hard refresh Ctrl+Shift+R

trvhung commented 2 months ago

hard refresh Ctrl+Shift+R https://paimon-moe-brown.vercel.app/

refresh it will work fine. but when click SPA it will not work. can you help me?

jogerj commented 2 months ago

ah, I thought this was on the paimon.moe site. Since you self deployed on vercel, you'll need to adjust the routing with vercel.json. The current deployment uses netlify, the redirects are defined here:

https://github.com/MadeBaruna/paimon-moe/blob/fb7fbcc0c9f34cdabff6d8685b7563530950b216/netlify.toml#L5-L8

You'll have to adjust this to work with vercel. Check this page: Migrate to Vercel from Netlify