Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.