From dd6d2ab161b1f7e000fb4e5d7f6f40d38ea6ca90 Mon Sep 17 00:00:00 2001 From: Dominik Broj Date: Tue, 17 Sep 2024 17:11:30 +0200 Subject: [PATCH] chore: always point livereload to localhost (#5029) # What this PR does Always point livereload to localhost. I missed this change when submitting this PR: https://github.com/grafana/oncall/pull/5021 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes. --- grafana-plugin/webpack.config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/grafana-plugin/webpack.config.ts b/grafana-plugin/webpack.config.ts index 1797e3b4..8666296f 100644 --- a/grafana-plugin/webpack.config.ts +++ b/grafana-plugin/webpack.config.ts @@ -59,7 +59,16 @@ const config = async (env): Promise => { }, plugins: [ ...(baseConfig.plugins?.filter((plugin) => !(plugin instanceof LiveReloadPlugin)) || []), - ...(env.development ? [new LiveReloadPlugin({ appendScriptTag: true, useSourceHash: true })] : []), + ...(env.development + ? [ + new LiveReloadPlugin({ + appendScriptTag: true, + useSourceHash: true, + protocol: 'http', + hostname: 'localhost', + }), + ] + : []), new EnvironmentPlugin({ NODE_ENV: 'development', PLUGIN_ID: 'grafana-oncall-app',