Back

Environment variable import on client side

  • 0
  • Databases
  • Web
Codie-123
25 Aug, 2024, 06:45

Hey everyone , i hope you all having a wonderfull day . recently i had integrated appwrite to my small side react projects , its very simple to integrate , but iam confused at some point when iam trying to list documents inside my profile in client side i cant import the env data , yes on client side we dont have access to env variables . can anyone suggest a good method to solve this

TL;DR
Developers are unable to import environment variables on the client side when using Appwrite in a React project. One suggested solution is to create a proxy server to securely retrieve the environment variables and pass them to the client side.
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