From 717671e6503f42e66edefd5535aa6d6f9c1f1914 Mon Sep 17 00:00:00 2001 From: Yi-Jyun Pan Date: Tue, 12 Sep 2023 23:08:48 +0800 Subject: [PATCH] chore(bun): Clean up unused comments --- packages/start-bun/entry.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/start-bun/entry.js b/packages/start-bun/entry.js index 15c6b7d8c..7d384e929 100644 --- a/packages/start-bun/entry.js +++ b/packages/start-bun/entry.js @@ -1,12 +1,11 @@ //@ts-check - import fs from "fs"; import { dirname, join } from "path"; import { fileURLToPath } from "url"; -//@ts-ignore preserved +//@ts-ignore It will be generated when building. import manifest from "../../dist/public/route-manifest.json"; -//@ts-ignore preserved +//@ts-ignore It will be generated when building. import handler from "./entry-server.js"; const { PORT = 3000 } = process.env; @@ -19,15 +18,10 @@ const paths = { const hasAssets = fs.existsSync(paths.assets); const assetsWebPath = "/assets/"; -/** - * @type {Record} - */ const env = { manifest }; -console.log("Listening on 0.0.0.0:%s", PORT); const server = Bun.serve({ port: PORT, - hostname: "0.0.0.0", async fetch(req) { const { pathname } = new URL(req.url);