aws-amplify / aws-amplify/amplify-cli
Hook into env checkout events for plugins?
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
**Which Category is your question related to?**
plugins
**Amplify CLI Version**
4.29.4
**Provide additional details e.g. code snippets**
I am given certain events that I can hook into for plugin development e.g. `postPush`, `postInit` etc. These work as expected but is there any way I can hook into the event of checking out a different env?
I currently listen to `postPush` then I update a `.env` file which my front end uses to get a cloudfront url. Is there a way I can hook into the checking out of a different env so I can clear out this env variable from the `.env` file as it no longer applicable to the new env.
I would have assumed `postInit` would be triggered in this case but doesn't seem to be.
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.