Lightlines
By lobehub

add-setting-env

lobehub4.2k installs

Configure user-setting defaults with server env vars.

What it does

Adds server-side environment variables that set user-setting defaults while preserving user overrides.

When to use it

Use when adding a server-side environment variable to configure a user-setting default.

How to use it

Give it a setting name in the project; it adds the environment-variable configuration, wires it into settings, and updates examples and documentation.

What you provide

  • the setting name
  • An existing project

Latest review

What you need · 2

The environment-variable module imports createEnv from @t3-oss/env-core.

The environment-variable module imports zod to validate and coerce setting values.


Access · 0

No additional actions listed.