Skip to content

Env configuration #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2025
Merged

Env configuration #30

merged 2 commits into from
Apr 18, 2025

Conversation

vas3a
Copy link
Collaborator

@vas3a vas3a commented Apr 18, 2025

  • prevent using process.env through esling config
  • use ENV_CONFIG instead
  • ENV_CONFIG loads variables from process.env (using dotenv) and validates them. Also, defaults, type validation & transformation are supported

@vas3a vas3a requested a review from kkartunov April 18, 2025 09:12
@@ -0,0 +1,53 @@
import { IsInt, IsOptional, IsString } from 'class-validator';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider verifying that changing from IsNumber to IsInt does not affect any existing functionality that relies on non-integer numbers for the PORT variable. If PORT is strictly an integer, this change is appropriate.

Base automatically changed from PM-1100_trolley-portal to dev April 18, 2025 09:50
@vas3a vas3a merged commit 548ff89 into dev Apr 18, 2025
1 check passed
@vas3a vas3a deleted the env-config branch April 18, 2025 10:09
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.

2 participants