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
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.