Skip to content

Commit

Permalink
chore(bun): Clean up unused comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Sep 12, 2023
1 parent f2d0390 commit 717671e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/start-bun/entry.js
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -19,15 +18,10 @@ const paths = {
const hasAssets = fs.existsSync(paths.assets);
const assetsWebPath = "/assets/";

/**
* @type {Record<string, any>}
*/
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);

Expand Down

0 comments on commit 717671e

Please sign in to comment.