aws-amplify / amplify-backend

Home to all tools related to Amplify's code-first DX (Gen 2) for building fullstack apps on AWS
Apache License 2.0
166 stars 55 forks source link

fix: added static context to clear the .amplify/generated/env Directory before synthesis #2044

Open vigy02 opened 4 days ago

vigy02 commented 4 days ago

Problem

The .amplify/generated/env/ directory is not cleared before deployments, causing outdated/renamed environment files to remain. This can lead to confusion and potential errors when the function's handler code does not match the current environment settings.

changeset-bot[bot] commented 4 days ago

🦋 Changeset detected

Latest commit: cfd19f7ca06ac4dab8adafd1297cef2eb99923b7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ----------------------------- | ----- | | @aws-amplify/backend-function | Patch | | @aws-amplify/backend | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR