Skip to content

Commit d58ed2e

Browse files
committed
Update Makefile.core.mk
1 parent 7310972 commit d58ed2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile.core.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ ifeq ($(CURRENT_BRANCH),master)
8383
else ifneq ($(filter release-%, $(CURRENT_BRANCH)),)
8484
baseurl := https://istio.io/latest
8585

86+
# If the CONTEXT environment variable is set to deploy-preview, we use the DEPLOY_PRIME_URL as the base URL
87+
else ifneq ($(CONTEXT),deploy-preview)
88+
baseurl := $(DEPLOY_PRIME_URL)/latest
89+
8690
# If the current branch is not master or release branch, we use /latest as the base URL
8791
# This is useful for feature branches or pull requests and deploy-preview
8892
else

0 commit comments

Comments
 (0)