Skip to content

Commit

Permalink
chore: always point livereload to localhost (#5029)
Browse files Browse the repository at this point in the history
# What this PR does

Always point livereload to localhost. I missed this change when
submitting this PR: #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.
  • Loading branch information
brojd authored Sep 17, 2024
1 parent 51ff0e0 commit dd6d2ab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion grafana-plugin/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,16 @@ const config = async (env): Promise<Configuration> => {
},
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',
Expand Down

0 comments on commit dd6d2ab

Please sign in to comment.