Skip to content
Back

Application error: a client-side exception has occurred

  • 0
  • Web
DeFacedFace
5 Nov, 2024, 10:07

I just deployed my first project to Vercel but im having some issues. The homepage loads up fine but going to login im hit with the title error...

I initialize the appwrite client with env variables from the client component.

TypeScript
  const client = new Client()
    .setProject(process.env.APPWRITE_PROJECT)
    .setEndpoint(process.env.APPWRITE_ENDPOINT);

I have imported all of my env variables to Vercel already. Not sure what could be causing this.. any help would be appreciated.

TL;DR
Issue: Application error occurs on login page after deploying project to Vercel. Solution: Ensure that environment variables from the client component are initialized correctly. Double-check that all environment variables are correctly imported into Vercel to avoid client-side exceptions.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more