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
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- cant resume project
Invalid console fingerprint event i try man time