crossmint-sdk icon indicating copy to clipboard operation
crossmint-sdk copied to clipboard

feat: Added zod env vars

Open jmderby opened this issue 1 year ago • 1 comments

Description

Introduces environment variable validation using Zod in env.ts. Validates keys like REACT_APP_CROSSMINT_API_KEY_PROD ensuring they meet criteria (e.g., non-empty strings). Errors guide setup without halting execution.

Test plan

  1. Validation: Misconfigure .env to trigger error messages.
  2. Type Safety: Access env properties in TypeScript, expecting IntelliSense to reflect Zod schema types.

jmderby avatar Jul 23 '24 04:07 jmderby

⚠️ No Changeset found

Latest commit: e2ffbbfe9407dbdf7ba07915a7171b989650b8ce

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Jul 23 '24 04:07 changeset-bot[bot]