Add a "production" argument to the dev_server script

When this argument is passed, set the environment to "production".
This commit is contained in:
Eryn Wells 2024-10-27 09:58:42 -06:00
parent 612a0425a2
commit d6e56e2ab7

View file

@ -1,4 +1,13 @@
#!/usr/bin/env zsh
# Eryn Wells <eryn@erynwells.me>
hugo server --buildDrafts --buildFuture --noHTTPCache --enableGitInfo
if [[ "$1" == "production" ]]; then
hugo server \
--buildDrafts \
--buildFuture \
--noHTTPCache \
--enableGitInfo \
--environment production
else
hugo server --buildDrafts --buildFuture --noHTTPCache --enableGitInfo
fi