Add build check for .env file
This commit is contained in:
@ -1,5 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
ENV_FILE=.env
|
||||||
|
|
||||||
|
## Make sure that the configuration file exists before continuing
|
||||||
|
if [ ! -f "$ENV_FILE" ]; then
|
||||||
|
echo "$ENV_FILE does not exist"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
next build
|
next build
|
||||||
next export
|
next export
|
||||||
echo 'roadmap.sh' > out/CNAME
|
echo 'roadmap.sh' > out/CNAME
|
||||||
|
Reference in New Issue
Block a user