added dynamic domain

This commit is contained in:
mrfry 2023-04-08 10:16:35 +02:00
parent f82ecaa6d0
commit 199c5fe4b1
14 changed files with 185 additions and 718 deletions

13
make.sh
View file

@ -1,2 +1,13 @@
#!/bin/bash
npm run export
scriptPath=$(dirname -- "${0}")
domainPath="${scriptPath}/../../data/domain"
if [ ! -f "${domainPath}" ]; then
echo "${domainPath} does not exist!"
exit 1
fi
domain=$(cat "${domainPath}")
DOMAIN="${domain}" npm run export
echo "Exported with domain: '${domain}'"