mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
chore: fix WSS connection issue in local development
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user