Skip to content

Commit

Permalink
fix: try implementing a staging env
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroedin committed Nov 21, 2024
1 parent 41d7ee0 commit aac7a31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL/experts/ && cp public/experts/_redirects public/_redirects"
HUGO_ENV = "staging"

[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL/experts/ && cp public/experts/_redirects public/_redirects"
Expand Down
4 changes: 2 additions & 2 deletions themes/rhds/layouts/partials/head/js.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

{{- if eq hugo.Environment "development" }}
{{- if not hugo.IsProduction }}
<!--
Dev environment does not work with redhatstatic due to CORS, switch to JSPM
-->
Expand Down Expand Up @@ -62,7 +62,7 @@
</script>

{{- with resources.Get "js/main.js" }}
{{- if eq hugo.Environment "development" }}
{{- if not hugo.IsProduction }}
{{- with . | js.Build }}
<script defer src="{{ .RelPermalink }}"></script>
{{- end }}
Expand Down

0 comments on commit aac7a31

Please sign in to comment.