-const path = require('path'),
- finalhandler = require('finalhandler'),
- http = require('http'),
- serveStatic = require('serve-static');
+import { createServer } from 'node:http'
+import { dirname, join } from 'node:path'
+import { env } from 'node:process'
+import { fileURLToPath } from 'node:url'