I just wonder how to get appwrite site env to angular env like next ?
TypeScript
appwriteEndpoint: string;
appwriteProjectId: string;
appwriteProjectName: string;
} = {
appwriteEndpoint: 'APPWRITE_ENDPOINT',
appwriteProjectId: 'APPWRITE_PROJECT_ID',
appwriteProjectName: 'APPWRITE_PROJECT_NAME',
};
cause we are not gonna push with value to git.
TL;DR
Developers seek to access Appwrite site environment variables in Angular without revealing sensitive information on GitHub. You can use environment.ts file for this purpose:
```typescript
export const environment = {
appwriteEndpoint: process.env.APPWRITE_ENDPOINT,
appwriteProjectId: process.env.APPWRITE_PROJECT_ID,
appwriteProjectName: process.env.APPWRITE_PROJECT_NAME
};
```
Remember to manage these variables securely on your server and not push them to GitHub.Recommended threads
- Urgent Help
Hello Appwrite team, I urgently need your help. I am the founder of OnBuch, an EdTech application used by around 10,000 users in Cameroon. In the last two day...
- Function's Static IP
Is it possible to have static. IP Address instead of Dynamic IP for getting the IP Address whitelist
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...