Skip to content

Commit 74b0c58

Browse files
authored
Use staging bucket to pull integration images in non prod environments (#27467)
* use review bucket for local/preview Signed-off-by: Brian Deutsch <[email protected]> * staging not review Signed-off-by: Brian Deutsch <[email protected]> --------- Signed-off-by: Brian Deutsch <[email protected]>
1 parent 28ad75a commit 74b0c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/integrations/_markup/render-image.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{- $app_id := .Page.Params.integration_id | default .Page.Params.name -}}
99
{{- $img := replaceRE `(./)?images/` "" .Destination -}}
1010
{{- $url := split $img "/" -}}
11-
{{- $app_listings_bucket := "dd-app-listings" -}}
11+
{{- $app_listings_bucket := cond (eq hugo.Environment "live") "dd-app-listings" "dd-app-listings-staging" -}}
1212

1313
{{- if or (strings.Contains .Destination "https://raw.githubusercontent.com") (strings.Contains .Destination "https://s3.amazonaws.com/") -}}
1414
<img src="{{ (.Destination | safeURL) }}"

0 commit comments

Comments
 (0)