Description: The application currently attempts to boot up even if essential operational environment variables (e.g., DATABASE_URL, STELLAR_RPC_URL, JWT_SECRET) are missing or incorrectly formatted, causing hard-to-debug runtime panics much later down the line.
Context / Motivation: Forcing a fast, descriptive crash during the boot sequence prevents unstable, partially configured server containers from executing in production environments.
Acceptance Criteria:
Description: The application currently attempts to boot up even if essential operational environment variables (e.g.,
DATABASE_URL,STELLAR_RPC_URL,JWT_SECRET) are missing or incorrectly formatted, causing hard-to-debug runtime panics much later down the line.Context / Motivation: Forcing a fast, descriptive crash during the boot sequence prevents unstable, partially configured server containers from executing in production environments.
Acceptance Criteria:
npm run start).PORTis a valid number,DATABASE_URLmatches a valid connection URI protocol).Technical Pointers: Use a tool like
envalidor build a clean Zod schema configuration object (process.envparsing script) that parses and exports a strictly frozen, safe configuration object for use throughout the system.