#[SOLVED] working on localhost but not on the live site(changed the platform id too)

13 messages · Page 1 of 1 (latest)

half oasis
#

Did you setup your environment variables correctly?

civic chasm
#

yes i did.

half oasis
#

What's the network request look like when fetching data?

civic chasm
#

like this

half oasis
#

Can you click into it? It says 404, makes me thing you've put the wrong project id, database id, or collection id.

civic chasm
half oasis
#

You don't have your environment variables setup correctly.

civic chasm
#

no my environment is all there. nothing missing. let me redeploy the project again

half oasis
#

Well, it says undefined, if you're using the environment variables to populate that, then it's not setup correctly lol

#

What platform are you hosting on? Vercel?

civic chasm
#

yes vercel,

I double-checked everything. i am not sure what I am missing here.

everything is there. and it's correct too!

#

I finally found it, just a typo in the env variable name caused this headache!

sometimes I hate my profession!

thanks for your help, Kenny.