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
|
@ -1,7 +1,7 @@
|
|||
// eslint-disable-next-line no-undef
|
||||
const useLocalhost = process && process.env.NODE_ENV === 'development'
|
||||
// eslint-disable-next-line no-undef
|
||||
const domain = process && process.env.DOMAIN
|
||||
const domain = process && process.env.NEXT_PUBLIC_DOMAIN
|
||||
|
||||
if (!domain && !useLocalhost) {
|
||||
throw new Error('Domain is not defined! Please set DOMAIN env variable!')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue