mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
env variable fix
This commit is contained in:
parent
d94bf74663
commit
509aff7cdd
2 changed files with 2 additions and 2 deletions
2
make.sh
2
make.sh
|
@ -8,6 +8,6 @@ if [ ! -f "${domainPath}" ]; then
|
||||||
fi
|
fi
|
||||||
domain=$(cat "${domainPath}")
|
domain=$(cat "${domainPath}")
|
||||||
|
|
||||||
DOMAIN="${domain}" npm run export
|
NEXT_PUBLIC_DOMAIN="${domain}" npm run export
|
||||||
|
|
||||||
echo "Exported with domain: '${domain}'"
|
echo "Exported with domain: '${domain}'"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
const useLocalhost = process && process.env.NODE_ENV === 'development'
|
const useLocalhost = process && process.env.NODE_ENV === 'development'
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
const domain = process && process.env.DOMAIN
|
const domain = process && process.env.NEXT_PUBLIC_DOMAIN
|
||||||
|
|
||||||
if (!domain && !useLocalhost) {
|
if (!domain && !useLocalhost) {
|
||||||
throw new Error('Domain is not defined! Please set DOMAIN env variable!')
|
throw new Error('Domain is not defined! Please set DOMAIN env variable!')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue