AbhishekOriginal post
Rank 2: Process
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?
Summary
- Developers are trying to figure out how to handle environment variables in Nuxt projects like project id and appwrite endpoint.
- In the guide, the environment variables are imported easily but get included as raw strings in the build.
- The concern is to protect sensitive variables like API keys. Non-sensitive variables might be fine to include.
- Recommendation: Consider using server-side environment variables or encryption methods for sensitive data.