Skip to content

Commit 7f6b9d2

Browse files
Merge pull request mendix#10738 from mendix/olu-mx-dock-dev
Update mx-dock to use different script per env
2 parents 4513390 + 49ecc7b commit 7f6b9d2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

layouts/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<script type="text/javascript">
2323
window.__MX_APP_NAME = 'Docs';
2424
</script>
25-
<script src="https://dock-static.mendix.com/main.js" async></script>
25+
<script src="{{ if eq hugo.Environment "production" }}https://dock-static.mendix.com/main.js{{ else }}https://dock-static-test.mendix.com/main.js{{ end }}" async></script>
2626
</div>
2727
{{ partial "scripts.html" . }}
2828
</body>

layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@
7373
</ul>
7474
</div>
7575

76-
<script src="https://dock-static.mendix.com/main.js" async></script>
76+
<script src="{{ if eq hugo.Environment "production" }}https://dock-static.mendix.com/main.js{{ else }}https://dock-static-test.mendix.com/main.js{{ end }}" async></script>

0 commit comments

Comments
 (0)