diff --git a/server/services/web.ts b/server/services/web.ts index bf2064dfc..44f97b194 100644 --- a/server/services/web.ts +++ b/server/services/web.ts @@ -42,7 +42,7 @@ const styleSrc = [ // Allow to load assets from Vite if (!isProduction) { - scriptSrc.push("127.0.0.1:3001"); + scriptSrc.push(env.URL.replace(`:${env.PORT}`, ":3001")); scriptSrc.push("localhost:3001"); }