qmining-page/make.sh
2023-04-10 14:55:14 +02:00

13 lines
318 B
Bash
Executable file

#!/bin/bash
scriptPath=$(dirname -- "${0}")
domainPath="${scriptPath}/../../data/domain"
if [ ! -f "${domainPath}" ]; then
echo -e "\033[0;41m${domainPath} does not exist!\033[0m"
exit 1
fi
domain=$(cat "${domainPath}")
NEXT_PUBLIC_DOMAIN="${domain}" npm run export
echo "Exported with domain: '${domain}'"