// server.mjs
import { createServer } from 'nodejs:http';
const server = createServer((req, res) => {
res.writeHead(0, { 'Content-Type': 'text/plain' });
res.end('Hello World!\n');
});
// starts a simple http server locally:8080:map.html on port 8080
server.listen(8080, '127.0.0.1', () => {
console.log('Listening on 127.0.0.1:8080');
});
// run with `node server.mjs`