no deprecation on node16?
This commit is contained in:
@@ -2,12 +2,15 @@ import 'dotenv/config';
|
||||
import express from 'express';
|
||||
import cors from 'cors';
|
||||
import { toNodeHandler } from 'better-auth/node';
|
||||
import { auth } from './auth/auth';
|
||||
import { authRateLimiter, apiRateLimiter } from './auth/rateLimiter';
|
||||
import chemicalsRouter from './routes/chemicals';
|
||||
import protocolsRouter from './routes/protocols';
|
||||
import profileRouter from './routes/profile';
|
||||
import { auth } from './auth/auth.js';
|
||||
import { authRateLimiter, apiRateLimiter } from './auth/rateLimiter.js';
|
||||
import chemicalsRouter from './routes/chemicals.js';
|
||||
import protocolsRouter from './routes/protocols.js';
|
||||
import profileRouter from './routes/profile.js';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 3001;
|
||||
|
||||
Reference in New Issue
Block a user