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.
This commit is contained in:
Dominik Broj 2024-09-17 17:11:30 +02:00 committed by GitHub
parent 51ff0e0b9e
commit dd6d2ab161
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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',