fix: remove import.meta (ESM-only) — use native __dirname in CJS

This commit is contained in:
Manohar 2026-05-08 16:33:15 +00:00
parent 5bb59de545
commit 28178abbe5

View file

@ -1,10 +1,8 @@
import express from 'express';
import path from 'path';
import { fileURLToPath } from 'url';
import { db } from '../db/client.js';
import { isMarketOpen } from '../tracker/market-hours.js';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export function createServer(): express.Application {
const app = express();