mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
DOMAIN env var functionality improvements
This commit is contained in:
parent
509aff7cdd
commit
a1dab7a3ca
2 changed files with 11 additions and 4 deletions
|
@ -4,7 +4,9 @@ const useLocalhost = process && process.env.NODE_ENV === 'development'
|
|||
const domain = process && process.env.NEXT_PUBLIC_DOMAIN
|
||||
|
||||
if (!domain && !useLocalhost) {
|
||||
throw new Error('Domain is not defined! Please set DOMAIN env variable!')
|
||||
throw new Error(
|
||||
'Domain is not defined! Please set NEXT_PUBLIC_DOMAIN env variable!'
|
||||
)
|
||||
}
|
||||
|
||||
const constants = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue