Skip to content

Commit

Permalink
Allowing playground to be run on a nominated interface and port (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-dick authored Feb 22, 2024
1 parent cb805a4 commit 0de36a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion playground/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Check failure on line 9 in playground/webpack.config.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`

const config: Configuration = {
mode: isDev ? 'development' : 'production',
Expand Down Expand Up @@ -52,7 +54,8 @@ const config: Configuration = {

devServer: {
compress: !isDev,
port: 3000,
host: host,
port: port,
},

performance: {
Expand Down

0 comments on commit 0de36a7

Please sign in to comment.