Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
trvhung opened this issue Aug 27, 2024 · 3 comments
Open

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

trvhung opened this issue Aug 27, 2024 · 3 comments

Comments

@trvhung
Copy link

trvhung commented Aug 27, 2024

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
Copy link

jogerj commented Aug 28, 2024

hard refresh Ctrl+Shift+R

@trvhung
Copy link
Author

trvhung commented Aug 28, 2024

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
Copy link

jogerj commented Aug 30, 2024

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:

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants