Skip to content

Commit 2d73fe8

Browse files
committed
fix dotenv usages
1 parent e7aacc0 commit 2d73fe8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/server/server.ts

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { createServer } from 'http';
33
import { Plugin } from '@envelop/core';
44
import { schema } from '../resolvers.js';
55
import type { GraphQLContext } from '../context.js';
6+
import dotenv from 'dotenv';
7+
8+
dotenv.config();
69

710
export { BLOCK_RANGE_SIZE, buildServer };
811

src/services/actions-service/actions-service.ts

-3
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ import {
3030
throwActionStateError,
3131
throwBlockRangeError,
3232
} from '../../errors/error.js';
33-
import dotenv from 'dotenv';
3433
import { BLOCK_RANGE_SIZE } from '../../server/server.js';
3534

36-
dotenv.config();
37-
3835
export { ActionsService };
3936

4037
class ActionsService implements IActionsService {

0 commit comments

Comments
 (0)