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 63d74de commit daadc7f
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 daadc7f

Please sign in to comment.