fix: remove import.meta (ESM-only) — use native __dirname in CJS
This commit is contained in:
parent
5bb59de545
commit
28178abbe5
1 changed files with 0 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue