chore: Setup dotenv for the express application
This commit is contained in:
12
packages/backend/src/config/app-env.ts
Normal file
12
packages/backend/src/config/app-env.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
|
||||
type AppEnv = {
|
||||
port: string,
|
||||
}
|
||||
|
||||
const appEnv: AppEnv = {
|
||||
port: process.env.PORT || '3000',
|
||||
}
|
||||
|
||||
export default appEnv;
|
Reference in New Issue
Block a user