chore: add HTTP_INTERNAL to env loader

This commit is contained in:
Isaac 2024-01-20 20:53:50 +00:00
parent 10eef10216
commit e695aa2147
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -34,6 +34,7 @@ const env = {
HTTP_HOST: v =>
(!!v && !v.startsWith('http')) ||
new Error('is required and must be an address, not a URL'),
HTTP_INTERNAL: () => true, // optional
HTTP_PORT: v =>
!!v ||
new Error('is required'),