Skip to content

Comments

initial commit#1

Open
Yevhenko wants to merge 6 commits intomasterfrom
project-setup
Open

initial commit#1
Yevhenko wants to merge 6 commits intomasterfrom
project-setup

Conversation

@Yevhenko
Copy link
Owner

@Yevhenko Yevhenko commented Mar 4, 2021

No description provided.

@Yevhenko Yevhenko requested a review from Cherevan March 4, 2021 16:39
@Cherevan
Copy link
Collaborator

Cherevan commented Mar 4, 2021

у тебе є пошук параментрів із .енв файлу:
APP_PORT: Number,
DB_HOST: String,
DB_PORT: Number,
DB_BASE: String,
DB_USER: String,
DB_PSWD: String,
DB_PORT_EXT: Number

Але файл .енв.ікземпл пустий

@Cherevan
Copy link
Collaborator

Cherevan commented Mar 4, 2021

Ну і там просить пододавати пусті останні рядки в файлах

Copy link
Collaborator

@Cherevan Cherevan left a comment

Choose a reason for hiding this comment

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

ok

DB_USER: String,
DB_PSWD: String,
DB_PORT_EXT: Number
}); No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

Краще використай варіант із схемою, як прописано в документації ліби:

import { EnvType, load } from 'ts-dotenv';

export type Env = EnvType;

export const schema = {
NODE_ENV: String,
};

export let env: Env;

export function loadEnv(): void {
env = load(schema);
}

@Yevhenko Yevhenko requested a review from Cherevan March 6, 2021 16:21
@Yevhenko Yevhenko requested a review from IhorHordiichuk March 8, 2021 12:36
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