File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ cd "${PROJECT_ROOT}"
13
13
# https://stackoverflow.com/questions/3004811/how-do-you-run-multiple-programs-in-parallel-from-a-bash-script
14
14
(
15
15
trap ' kill 0' SIGINT
16
- CODERV2_HOST=http://127.0.0.1:3000 yarn --cwd=./site dev &
16
+ CODERV2_HOST=http://127.0.0.1:3000 INSPECT_XSTATE=true yarn --cwd=./site dev &
17
17
go run cmd/coder/main.go start --dev --tunnel=false
18
18
)
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { inspect } from "@xstate/inspect";
4
4
import { Interpreter } from "xstate"
5
5
import { App } from "./app"
6
6
7
- // if this is a development build
8
- if ( process . env . NODE_ENV === "development" ) {
7
+ // if this is a development build and the developer wants to inspect
8
+ if ( process . env . NODE_ENV === "development" && process . env . INSPECT_XSTATE === "true" ) {
9
9
// configure the XState inspector to open in a new tab
10
10
inspect ( {
11
11
url : "https://stately.ai/viz?inspect" ,
You can’t perform that action at this time.
0 commit comments