no deprecation on node16?

This commit is contained in:
2026-04-02 14:42:35 -05:00
parent f13035f8c5
commit e3f3d5a289
9 changed files with 25 additions and 16 deletions

View File

@@ -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;