text: const {createServer} = require("http")
  const {parse} = require("url")
  const blitz = require("blitz/custom-server")
  const {log} = require("@blitzjs/display")
  
  const {PORT = "3000"} = process.env
  const dev = process.env.NODE_ENV !== "production"
  const app = blitz({dev})
  const handle = app.getRequestHandler()
  
  app.prepare().then(() => {
    createServer((req, res) => {
      const parsedUrl = parse(req.url, true)
      const {pathname} = parsedUrl
  
      if (pathname === "/hello") {
        res.writeHead(200).end("world")
        return
      }
  
      handle(req, res, parsedUrl)
    }).listen(PORT, () => {
      log.success(`Ready on http://localhost:${PORT}`)
    })
  })
  