Skip to content

Implement startup validation for required environment variables #364

@manideepk90

Description

@manideepk90

Implement startup validation for required environment variables

Create validation for required environment variables:

  • HYPERSWITCH_PRODUCTION_URL
  • HYPERSWITCH_SANDBOX_URL
  • API keys and endpoints

Note: Ignore Sentry keys

Currently, we are not validating whether the keys are provided in the .env file or not. If the app is compiled or bundled without these keys, the PaymentSheet never opens. We should add a strict validation to ensure the required keys are present. This applies to both yarn start and yarn bundle commands.

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomershacktoberfestIssues that are up for grabs for hacktoberfest participants

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions