Skip to content

Commit

Permalink
feat: initialize server with a specific port using Port type in Probe
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Jan 1, 2025
1 parent 7c16fa7 commit a0d33bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Probe/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import logger from "Common/Server/Utils/Logger";
import App from "Common/Server/Utils/StartServer";
import Telemetry from "Common/Server/Utils/Telemetry";
import "ejs";
import Port from "Common/Types/Port";

const APP_NAME: string = "probe";

Expand All @@ -22,7 +23,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
// init the app
await App.init({
appName: APP_NAME,
port: undefined,
port: new Port(3874), // some random port to start the server. Since this is the probe, it doesn't need to be exposed.
isFrontendApp: false,
statusOptions: {
liveCheck: async () => {},
Expand Down

0 comments on commit a0d33bf

Please sign in to comment.