EraCode practice
Env config: validate and default a feature flag
ZodintermediateMulti-Part
Summary
Quick Zod practice on environment/config parsing: interpret env strings safely and provide a sensible default.
Problem preview
### Goal Complete the Zod schema so a feature flag env var becomes a reliable boolean. - Accept or (strings) from . - If the env var is missing/undefined, default to . - Any other value should cause …
Attempt this challenge
Sign in to attempt the full challenge with timed AI grading, hints, and test feedback.