From 0de36a726a84fcc5c2fa07d5a7e519c7b4a34be4 Mon Sep 17 00:00:00 2001 From: david-dick Date: Thu, 22 Feb 2024 21:32:50 +1100 Subject: [PATCH] Allowing playground to be run on a nominated interface and port (#159) --- playground/webpack.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/playground/webpack.config.ts b/playground/webpack.config.ts index 3ea5be70..799bcb61 100644 --- a/playground/webpack.config.ts +++ b/playground/webpack.config.ts @@ -5,6 +5,8 @@ import { Configuration } from 'webpack' import 'webpack-dev-server' const isDev = process.env.DEV === '1' +const port = process.env.BOTD_PORT || 3000 +const host = process.env.BOTD_HOST; const config: Configuration = { mode: isDev ? 'development' : 'production', @@ -52,7 +54,8 @@ const config: Configuration = { devServer: { compress: !isDev, - port: 3000, + host: host, + port: port, }, performance: {