DOMAIN env var functionality improvements

This commit is contained in:
mrfry 2023-04-11 11:17:46 +02:00
parent 89edf86099
commit f8d423f162
2 changed files with 11 additions and 4 deletions

View file

@ -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 = {