From ee049d652511170d7ac5be90249911847a97f4d4 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Mon, 11 Nov 2024 12:13:15 +0100 Subject: [PATCH] Update vite.config.js --- vite.config.js | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/vite.config.js b/vite.config.js index 3598d391a..fff4bd2d4 100644 --- a/vite.config.js +++ b/vite.config.js @@ -6,23 +6,11 @@ export default defineConfig({ server: { watch: { ignored: ['**/_data/**'], - }, + }, host: "0.0.0.0", - hmr: process.env.GITPOD_WORKSPACE_URL - ? { - // Due to port forwarding, we have to replace - // 'https' with the forwarded port, as this - // is the URI created by GitPod. - host: process.env.GITPOD_WORKSPACE_URL.replace( - "https://", - "5173-" - ), - protocol: "wss", - clientPort: 443, - } - : { - host: process.env.VITE_HOST, - }, + hmr: { + host: process.env.VITE_HOST, + }, }, plugins: [ laravel({