https://appwrite.io/docs/tutorials/nuxt/step-3#environment-variables
In the guide, the environment variables are imported simply as
const url: string = import.meta.env.VITE_APPWRITE_ENDPOINT;
const project: string = import.meta.env.VITE_APPWRITE_PROJECT;
But if I build the app, then these environment variables are just included in the build as raw strings instead of imports.
How do I protect these variables? What variables are sensitive, and what are not?
Environment Variables in Nuxt - How to Handle?
Project id and appwrite endpoint are not ment to be hidden afaik , as long as you set up the permissions properly on your appwrite console
Recommended threads
- Migration from Self-Hosted to Cloud seem...
Hello, I'm trying to migrate from my Self-Hosted Appwrite instance to Cloud, and can't figure out what's going wrong. - If I initiate the migration from Cloud...
- Password check in function
Hi, is there any way now for checking if the users password is correct in a function? I am creating a delete user function and before deleting I would like to c...
- Deployment fails after 15+ minutes: "Wai...
Hi, I'm Jayden. My email is jaydthom@haverford.org, and i'm having persistent deployment failures with my Next.js project. What happens: Push to GitHub trigg...