add-setting-env

Define and wire domain-specific environment variables into server configuration.

Updated Dec 12, 2024
One-click install
npx skills add https://github.com/kingmacth/lobe-chat --skill add-setting-env-kingmacth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-setting-env
Source: https://github.com/kingmacth/lobe-chat/tree/main/.agents/skills/add-setting-env
Command: npx skills add https://github.com/kingmacth/lobe-chat --skill add-setting-env-kingmacth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to adding domain-specific server-side environment variables to control default user settings on the server, enabling consistent behavior across deployments.

Core Features & Use Cases

  • Define domain-scoped environment variables to configure default values for user settings.
  • Update type definitions and server config wiring to incorporate new domains.
  • Merge server config into the user store and update environment documentation for self-hosting.

Quick Start

Create a domain-specific env file and wire it into the global server configuration to expose the new setting to the app.

Frequently Asked Questions about add-setting-env

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure user defaults via server-side environment variables?

To configure user defaults via server-side environment variables, define domain-specific variables in an env file and wire them into the global server configuration. This merges centralized settings into the user store automatically.

How do I add type-safe environment variables for new domains in TypeScript?

Adding type-safe environment variables for new domains in TypeScript involves defining typed env definitions. You then assemble these into the server global config to ensure type safety across your deployments.

What is the best way to merge server config into the user store?

The best way to merge server config into the user store is by wiring domain-specific environment variables into a global configuration assembly. This process automatically applies the centralized server defaults to user settings.

Does adding new domains require updating environment documentation for self-hosting?

Yes, adding new domains requires updating environment documentation for self-hosting. This ensures that all new domain-specific environment variables and default settings are properly aligned and documented for deployment.

Why do I need centralized environment configuration for default user settings?

You need centralized environment configuration for default user settings to enable consistent behavior across deployments. It allows server-side environment variables to control domain-specific defaults instead of managing them locally.