Skip to content

Commit

Permalink
fix: tunnel bridge not working after packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Dec 12, 2022
1 parent 01bfae3 commit 5bd0a16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import express from "express";
import expressWs from "express-ws";
import http from "http";
import { createServer, Server } from "net";
import path from "path";
import pkg from "../package.json";

export type HostAddressInfo = {
Expand Down Expand Up @@ -30,10 +31,11 @@ export const createWebServer = (opt: WebServerOptions): WebServer => {
});

// serve static files
app.use(express.static("public"));
app.use(express.static(path.join(__dirname, "../../public")));

// set the view engine to ejs
app.set("view engine", "ejs");
app.set("views", path.join(__dirname, "../../views"));

// set route for version
app.get("/version", (_, res) => {
Expand Down

0 comments on commit 5bd0a16

Please sign in to comment.