Skip to content

Zod configuration utility #102

@mwarman

Description

@mwarman

Describe the story

The application currently uses yup for schema-based validation of application configuration. Switch to use zod for the same purpose. Zod is the preferred schema-based validation library.

Acceptance criteria

GIVEN a component imports the configuration module
WHEN the module is first imported
THEN the configuration is parsed from import.meta.env using a Zod schema
AND the parsed and validated configuration object is exported

WHEN the module is imported a second or subsequent time
THEN the previously parsed configuration object is exported

WHEN a configuration validation error occurs
THEN an error is logged
AND an error of type Error is created with a meaningful message
AND the error is thrown

Additional context

n/a

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions