Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ndratov committed Dec 6, 2024
1 parent 3444d9e commit 4650dad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/server/db.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import dotenv from 'dotenv';
import path from 'path';
import { Client } from 'pg';
import dotenv from 'dotenv'
import path from 'path'
import { Client } from 'pg'

const PATH_TO_ENV_DEV = path.resolve(__dirname, '../../../.env');
const PATH_TO_ENV_PROD = path.resolve(__dirname, '../../.env');
const PATH_TO_ENV_DEV = path.resolve(__dirname, '../../../.env')
const PATH_TO_ENV_PROD = path.resolve(__dirname, '../../.env')

dotenv.config({
path: process.env.NODE_ENV === 'production' ? PATH_TO_ENV_PROD : PATH_TO_ENV_DEV, // Путь к корневому .env файлу
Expand Down

0 comments on commit 4650dad

Please sign in to comment.