Skip to content

fix(env): guard checkout price config - #86

Open
aiirvizionz wants to merge 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/strict-env-prices
Open

fix(env): guard checkout price config#86
aiirvizionz wants to merge 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/strict-env-prices

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • require positive integer env values for upload/cache/email limits instead of accepting zero, decimals, or partially numeric strings
  • require positive USD price env values with at most two decimals before checkout pricing uses them
  • fall back to the existing safe defaults when malformed values are configured

Validation

  • CI=true pnpm --filter @aiornot/web exec vitest run lib/env.test.ts passed 3 tests
  • CI=true pnpm --filter @aiornot/web exec vitest run lib/env.test.ts lib/sponsor-amount.test.ts lib/coinpay-blockchains.test.ts passed 12 tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant