Files
developer-roadmap/scripts/build.sh

15 lines
266 B
Bash
Raw Normal View History

2019-11-16 14:02:16 +04:00
#!/usr/bin/env bash
2019-11-16 15:35:37 +04:00
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
2019-11-16 16:11:08 +04:00
NODE_ENV=prod next build
2019-11-16 14:02:16 +04:00
next export
echo 'roadmap.sh' > out/CNAME
touch out/.nojekyll