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: clearing the .amplify/generated/env/ before synthesis #2043

Closed vigy02 closed 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.

Validation

changeset-bot[bot] commented 4 days ago

🦋 Changeset detected

Latest commit: 4f2d18c401ba6801cfa979d7ff37e0d170da315d

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

This PR includes changesets to release 1 package | Name | Type | | ----------------------------- | ----- | | @aws-amplify/backend-function | 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