Skip to content

Commit d9b30b8

Browse files
committed
add dotenv to hapi
1 parent 500361d commit d9b30b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/hapi/src/app.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
const Sentry = require('@sentry/node');
22
import Hapi from '@hapi/hapi';
3+
import dotenv from 'dotenv';
4+
5+
dotenv.config({ path: './../../.env' });
36

47
const server = Hapi.server({
58
port: 3030,

0 commit comments

Comments
 (0)