chore: fix WSS connection issue in local development

This commit is contained in:
Tom Moor
2025-01-24 09:44:54 -05:00
parent 48a330347f
commit 9929020b44
+2
View File
@@ -9,6 +9,7 @@ import { viteStaticCopy } from "vite-plugin-static-copy";
import environment from "./server/utils/environment";
let httpsConfig: CommonServerOptions["https"] | undefined;
const host = new URL(environment.URL!).hostname;
if (environment.NODE_ENV === "development") {
try {
@@ -31,6 +32,7 @@ export default () =>
port: 3001,
host: true,
https: httpsConfig,
allowedHosts: [host],
cors: true,
fs:
environment.NODE_ENV === "development"