From de7f87b5f1c59f038c54affc80f9e4a93a4485fa Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 17 Nov 2023 17:03:16 +0100 Subject: chore(deps): bump dependencies --- subprojects/frontend/config/detectDevModeOptions.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'subprojects/frontend/config/detectDevModeOptions.ts') diff --git a/subprojects/frontend/config/detectDevModeOptions.ts b/subprojects/frontend/config/detectDevModeOptions.ts index 6052e047..7a3de4cb 100644 --- a/subprojects/frontend/config/detectDevModeOptions.ts +++ b/subprojects/frontend/config/detectDevModeOptions.ts @@ -63,6 +63,11 @@ export default function detectDevModeOptions(): DevModeOptions { const api = detectListenOptions('API', '127.0.0.1', 1312); const publicAddress = detectListenOptions('PUBLIC', listen.host, listen.port); + if (listen.secure) { + // Since nodejs 20, we'd need to pass in HTTPS options manually. + throw new Error(`Preview on secure port ${listen.port} is not supported`); + } + const backendConfig: BackendConfig = { webSocketURL: `${listenURL(publicAddress, 'ws')}/${API_ENDPOINT}`, }; @@ -75,7 +80,6 @@ export default function detectDevModeOptions(): DevModeOptions { host: listen.host, port: listen.port, strictPort: true, - https: listen.secure, headers: { // Enable strict origin isolation, see e.g., // https://github.com/vitejs/vite/issues/3909#issuecomment-1065893956 -- cgit v1.2.3-54-g00ecf