My app is not rendering and I am getting below error on deployed app

Current Behavior :
App is not loading and in console below error is visible

Also, I do not see this error on local, not while running and not while building the app. Logs on vercel does not show any error or any kind of logs.

AppWrite Config file

import { Client, Databases, Account } from 'appwrite';

const client = new Client();
client
  .setEndpoint(import.meta.env.APPWRITE_ENDPOINT)
  .setProject(import.meta.env.APPWRITE_PROJECT_ID);

export const account = new Account(client);
export const databases = new Databases(client);

vite.config
export default defineConfig({
  plugins: [
    react(),
    replace({
      preventAssignment: true,
      values: {
        'import.meta.env.APPWRITE_ENDPOINT': JSON.stringify(
          process.env.VITE_APPWRITE_ENDPOINT
        ),
      },
    }),
    replace({
      preventAssignment: true,
      values: {
        'import.meta.env.APPWRITE_PROJECT_ID': JSON.stringify(
          process.env.VITE_APPWRITE_PROJECT_ID
        ),
      },
    }),
  ],
});

URL : https://idea-tracker-swart.vercel.app/
Backend : AppWrite
Frontend : React
Project Build tool : Vite

Env variables have been added to Vercel project.

Please mention in case any additional info is required. TIA.

Hi, Sura! Welcome to the Vercel Community :smile:

We’d need a bit more information to dig deep here. Could you maybe share a minimal reproducible example with us?