Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit d495af8

Browse files
committed
do not try to read asset on disk to get asset version in local dev
1 parent 40b19ce commit d495af8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmd/frontend/internal/app/ui/tmpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var (
2424
versionCacheMu sync.RWMutex
2525
versionCache = make(map[string]string)
2626

27-
_, noAssetVersionString = os.LookupEnv("WEBPACK_SERVE")
27+
_, noAssetVersionString = os.LookupEnv("WEBPACK_DEV_SERVER")
2828
)
2929

3030
// Functions that are exposed to templates.

dev/launch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export ZOEKT_HOST=localhost:6070
7070
# until they are (re)built and (2) otherwise passes through to Sourcegraph running on port
7171
# 3081. That is why Sourcegraph listens on 3081 despite the appURL having port 3080.
7272
export SRC_HTTP_ADDR=":3081"
73+
export WEBPACK_DEV_SERVER=1
7374

7475
# we want to keep config.json, but allow local config.
7576
export SOURCEGRAPH_CONFIG_FILE=${SOURCEGRAPH_CONFIG_FILE:-./dev/config.json}

0 commit comments

Comments
 (0)