Skip to content

fix: only purge alias by default if the purgeCache function is called within a deployed function #576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

JakeChampion
Copy link
Contributor

@JakeChampion JakeChampion commented Mar 5, 2025

linear ticket: https://linear.app/netlify/issue/RUN-1417/

This patch will ensure that when purgeCache is called within a deployed function, the purge will happen for the deployment which contains the function. I.E. If it's the production deployment, it purges production. If it's a branch deployment, it purges the branch. If it's a deploy-preview, it purges the deploy-preview.

@JakeChampion JakeChampion marked this pull request as ready for review March 5, 2025 14:06
@JakeChampion JakeChampion requested a review from a team as a code owner March 5, 2025 14:06
@JakeChampion JakeChampion requested a review from paulo March 5, 2025 14:16
@JakeChampion JakeChampion merged commit 964b0a2 into main Mar 17, 2025
6 checks passed
@JakeChampion JakeChampion deleted the jake/purge-alias branch March 17, 2025 12:25
JakeChampion pushed a commit that referenced this pull request Mar 17, 2025
🤖 I have created a release *beep* *boop*
---


## [3.0.2](v3.0.1...v3.0.2)
(2025-03-17)


### Bug Fixes

* if the purge api call fails, include the api response body in the
thrown error's message
([#571](#571))
([e01516d](e01516d))
* only purge alias by default if the purgeCache function is called
within a deployed function
([#576](#576))
([964b0a2](964b0a2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants