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
|`name`|`string`| Name of the environment variable |
89
-
|`schema`|`S.t<'value>`| A schema created with **[rescript-schema](https://github.com/DZakh/rescript-schema)**. It's used for coercion and parsing. For bool schemas coerces `"0", "1", "true", "false", "t", "f"` to boolean values. For int and float schemas coerces string to number. |
90
-
|`devFallback`|`'value=?`| A fallback value to use only when `NODE_ENV` is not `production`. This is handy for env vars that are required for production environments, but optional for development and testing. If you need to set fallback value for all environments, you can use `S.Option.getOr` on schema. |
91
-
|`input`|`string=?`| As some environments don't allow you to dynamically read env vars, we can manually put it in as well. Example: `input=%raw("process.env.NEXT_PUBLIC_API_URL")`. |
92
-
|`allowEmpty`|`bool=false`| Default behavior is `false` which treats empty strings as the value is missing. if explicit empty strings are OK, pass in `true`. |
|`name`|`string`| Name of the environment variable |
89
+
|`schema`|`S.t<'value>`| A schema created with **[rescript-schema](https://github.com/DZakh/rescript-schema)**. It's used for coercion and parsing. For bool schemas coerces `"0", "1", "true", "false", "t", "f"` to boolean values. For int and float schemas coerces string to number. For other non-string schemas the value is coerced using `JSON.parse` before being validated.|
90
+
|`devFallback`|`'value=?`| A fallback value to use only when `NODE_ENV` is not `production`. This is handy for env vars that are required for production environments, but optional for development and testing. If you need to set fallback value for all environments, you can use `S.Option.getOr` on schema. |
91
+
|`input`|`string=?`| As some environments don't allow you to dynamically read env vars, we can manually put it in as well. Example: `input=%raw("process.env.NEXT_PUBLIC_API_URL")`. |
92
+
|`allowEmpty`|`bool=false`| Default behavior is `false` which treats empty strings as the value is missing. if explicit empty strings are OK, pass in `true`. |
0 commit comments