1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 04:39:01 +00:00

Fix demo development inside a dev container (#21261)

This commit is contained in:
Paulus Schoutsen
2024-07-03 13:52:53 +02:00
committed by GitHub
parent 81c796beb4
commit d833910796
3 changed files with 9 additions and 1 deletions

View File

@@ -40,8 +40,12 @@ const runDevServer = async ({
compiler,
contentBase,
port,
listenHost = "localhost",
listenHost = undefined,
}) => {
if (listenHost === undefined) {
// For dev container, we need to listen on all hosts
listenHost = env.isDevContainer() ? "0.0.0.0" : "localhost";
}
const server = new WebpackDevServer(
{
hot: false,