Skip to content

Commit ae13a6c

Browse files
TatsatJhajdamerow
andauthored
use env variable in render build script (#142)
* use env variable in render build script * Put environment variable in preview line * adding debug messages --------- Co-authored-by: Julia Damerow <[email protected]>
1 parent 7390356 commit ae13a6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

render-build.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ $XDG_CACHE_HOME/hugo version # Output the NEW version
2727

2828
# Render sets IS_PULL_REQUEST to true for PR previews.
2929
if [ "${IS_PULL_REQUEST:-}" = "true" ]; then
30-
$XDG_CACHE_HOME/hugo --gc -e preview
30+
echo "Base url:"
31+
echo $RENDER_EXTERNAL_URL
32+
$XDG_CACHE_HOME/hugo --gc -e preview -b $RENDER_EXTERNAL_URL
3133
else
3234
$XDG_CACHE_HOME/hugo --gc --minify -b https://dh-tech.onrender.com/
35+
3336
fi

0 commit comments

Comments
 (0)