removed some domain dependencies

This commit is contained in:
mrfry 2023-04-11 16:18:35 +02:00
parent f8d423f162
commit b854b035c7
3 changed files with 9 additions and 41 deletions

18
make.sh
View file

@ -1,18 +1,2 @@
#!/bin/bash
scriptPath=$(dirname -- "${0}")
domainPath="${scriptPath}/../../data/domain"
domain="${DOMAIN}"
if [ -z "${domain}" ] && [ -f "${domainPath}" ]; then
domain=$(cat "${domainPath}")
fi
if [ -z "${domain}" ]; then
echo -e "\033[0;41mDOMAIN is not set, and ${domainPath} does not exist!\033[0m"
exit 1
fi
NEXT_PUBLIC_DOMAIN="${domain}" npm run export
echo "Exported with domain: '${domain}'"
npm run export