[#1] Clearer location
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
"@redwoodjs/graphql-server": "8.4.0",
|
||||
"@tus/file-store": "^1.4.0",
|
||||
"@tus/server": "^1.7.0",
|
||||
"country-flag-icons": "^1.5.13",
|
||||
"countries-list": "^3.1.1",
|
||||
"graphql-scalars": "^1.23.0",
|
||||
"nodemailer": "^6.9.14"
|
||||
},
|
||||
|
@ -16,9 +16,9 @@ enum Theme {
|
||||
}
|
||||
|
||||
;(async () => {
|
||||
const { hasFlag } = await import('country-flag-icons')
|
||||
const { countries } = await import('countries-list')
|
||||
|
||||
if (!hasFlag(process.env.COUNTRY))
|
||||
if (!Object.keys(countries).includes(process.env.COUNTRY))
|
||||
throw new Error(
|
||||
'Invalid COUNTRY environment variable, please select a valid ISO-3166-1 alpha-2 country code\n See https://en.wikipedia.org/wiki/ISO_3166-1#Codes'
|
||||
)
|
||||
|
Reference in New Issue
Block a user