Content
@
0 reply
0 recast
2 reactions
Max Jackson
@mxjxn.eth
Nextjs always has me pulling my hair out over bugs I cant pinpoint. I made this simple "rank-check" app which gets my subs on Hypersub & sorts them by time-remaining. Works fine locally. But when I push and it deploys to vercel, I get this error ideas? https://github.com/mxjxn/mxjxn.art/tree/main/src/app/rank-check
9 replies
1 recast
3 reactions
jtgi
@jtgi
afk but this happens when you receive html instead of json. A guess is process.env.VERCEL_URL isn’t working and choking on localhost. I’ve lost touch since app dir, but is it possible that’s resolved at build time? If so I think you need NEXT_PUBLIC_. I’d try setting HOST_URL in getData and logging.
1 reply
0 recast
0 reaction
Max Jackson
@mxjxn.eth
I will try that thank you!
0 reply
0 recast
0 reaction