fix: dotenv config
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
import express from 'express';
|
import express from 'express';
|
||||||
import http from 'http';
|
import http from 'http';
|
||||||
import cors from 'cors';
|
import cors from 'cors';
|
||||||
import 'dotenv/config';
|
import dotenv from 'dotenv';
|
||||||
|
dotenv.config();
|
||||||
import { record, workflow, storage, auth, integration } from './routes';
|
import { record, workflow, storage, auth, integration } from './routes';
|
||||||
import { BrowserPool } from "./browser-management/classes/BrowserPool";
|
import { BrowserPool } from "./browser-management/classes/BrowserPool";
|
||||||
import logger from './logger';
|
import logger from './logger';
|
||||||
@@ -54,6 +55,9 @@ app.get('/csrf-token', (req, res) => {
|
|||||||
res.json({ csrfToken: req.csrfToken() })
|
res.json({ csrfToken: req.csrfToken() })
|
||||||
})
|
})
|
||||||
|
|
||||||
|
console.log('Environment Variables:');
|
||||||
|
console.log('SECRET:', process.env.JWT_SECRET);
|
||||||
|
|
||||||
server.listen(SERVER_PORT, async () => {
|
server.listen(SERVER_PORT, async () => {
|
||||||
await connectDB();
|
await connectDB();
|
||||||
await syncDB();
|
await syncDB();
|
||||||
|
|||||||
Reference in New Issue
Block a user