This commit is contained in:
2026-07-05 16:09:32 +05:00
parent 5d18bb7965
commit 3841faa810
9 changed files with 14 additions and 8 deletions

View File

@@ -6,8 +6,8 @@ import { fileURLToPath } from 'node:url'
import { log } from '../helpers/log.js'
const httpPort = Number(process.env.HTTP_PORT)
const publicDir = join(dirname(fileURLToPath(import.meta.url)), '../../public')
const indexPath = join(publicDir, 'index.html')
const assetsDir = join(dirname(fileURLToPath(import.meta.url)), '../../assets')
const indexPath = join(assetsDir, 'index.html')
createServer(async (req, res) => {
const path = req.url?.split('?')[0]