Plant-for-the-Planet-org / planet-webapp

The Open Source and Commission Free Application that powers the Trillion Tree Campaign. Visit us to meet reforestation Organizations, individuals and companies who are on a journey to plant, monitor and restore a trillion trees.
https://www.trilliontreecampaign.org
Other
37 stars 15 forks source link

Separate cache key based on API env #2263

Closed mohitb35 closed 1 month ago

mohitb35 commented 1 month ago

This pull request separates the cache key for data explorer APIs based on the API_ENDPOINT env var to avoid data crossing between systems. The cache key is now prefixed with the API endpoint or 'env_missing' if the endpoint is not available. This change affects multiple files and ensures that the cache key is unique for each environment.

Note: while data explorer APIs do not use the API_ENDPOINT, they access the same set of data.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
planet-webapp-multi-tenancy-setup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 3:02pm
2 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **planet-webapp** | ⬜️ Ignored ([Inspect](https://vercel.com/planetapp/planet-webapp/BBdgqbPk6C6Y4My6fNumKBaiKUSg)) | | | Oct 15, 2024 3:02pm | | **planet-webapp-temp** | ⬜️ Ignored ([Inspect](https://vercel.com/planetapp/planet-webapp-temp/5jj3ycFfk2VFnWRT3SsdA5YJcBr5)) | | | Oct 15, 2024 3:02pm |