diff --git a/test.sh b/test.sh index ad2a0b52..3fe8b137 100755 --- a/test.sh +++ b/test.sh @@ -18,4 +18,8 @@ detect_dev_host() { DEV_HOST="$(detect_dev_host)" DEV_PORT=1313 -hugo server -DEF --bind "$DEV_HOST" --port $DEV_PORT --baseURL "http://$DEV_HOST:$DEV_PORT" \ No newline at end of file +if [ -z "${MEILI_SEARCH_API_KEY+x}" ]; then + export MEILI_SEARCH_API_KEY="dummy" +fi + +hugo server -DEF --bind "$DEV_HOST" --port $DEV_PORT --baseURL "http://$DEV_HOST:$DEV_PORT"