AppConfig System
Guides development and troubleshooting for the AppConfig runtime configuration system in the squareone application.
Provides expert guidance on the filesystem-based runtime configuration system used in the squareone application, which replaces the standard `next/config` pattern. This skill covers the complete architecture, from server-side loading with `loadAppConfig()` to client-side access via the `useAppConfig()` hook. It is essential for developers implementing new features that require configuration, troubleshooting hydration issues, integrating Sentry, managing MDX content, or deploying the application in a Kubernetes environment using ConfigMaps for configuration.
Key Features
01Details Kubernetes deployment patterns using ConfigMaps for runtime configuration.
02Explains the system for injecting Sentry configuration for server and client-side error monitoring.
03Includes patterns for loading and rendering MDX content alongside application configuration.
04Provides server-side (`loadAppConfig`) and client-side (`useAppConfig`) configuration patterns.
05Guides on using YAML files with JSON Schema for type-safe, validated configuration.
062 GitHub stars
Use Cases
01Adding a new configurable feature or page to the squareone application.
02Migrating legacy code from `next/config` to the modern AppConfig system.
03Troubleshooting configuration loading, validation errors, or Sentry initialization issues.