You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the recommended approach for validating unique env vars?
my use case is application ports where i want to make sure multiple apps can't have the same port.
My proposal is a way to specify a prefix for unique values.
e.g. PORT_ADMIN_DASHBOARD (all env vars that start with PORT_ must be unique)
I'm thinking a special env variable UNIQUE_VAR_PREFIXES that contains comma seperated prefixes that should be unique
e.g. UNIQUE_VAR_PREFIXES=PORT,OTHER_UNIQUE_PREFIX
when t3-env runs, it searches for vars with these prefixes and makes sure they're all unique
What's the recommended approach for validating unique env vars?
my use case is application ports where i want to make sure multiple apps can't have the same port.
My proposal is a way to specify a prefix for unique values.
e.g.
PORT_ADMIN_DASHBOARD
(all env vars that start withPORT_
must be unique)I'm thinking a special env variable UNIQUE_VAR_PREFIXES that contains comma seperated prefixes that should be unique
e.g. UNIQUE_VAR_PREFIXES=PORT,OTHER_UNIQUE_PREFIX
when t3-env runs, it searches for vars with these prefixes and makes sure they're all unique
the vars below will throw an error
The text was updated successfully, but these errors were encountered: