Merge pull request #4 from danialsamiei/devin/1771257507-fix-dev-mode

Fix blank page: set VSCODE_DEV=1 for dev workbench template
This commit is contained in:
Danial Samiei 2026-02-16 19:30:20 +03:30 committed by GitHub
commit 755beb6e12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,6 +50,12 @@ RUN npm run buildreact \
&& npm run compile \
&& npm run compile-web
# VSCODE_DEV=1 tells the server to use the dev workbench template which loads CSS
# dynamically via import maps. Without this, the server expects a bundled workbench.css
# that is only produced by the full packaging pipeline (gulp vscode-web-min), not by
# npm run compile.
ENV VSCODE_DEV=1
# Render sets PORT; use code-server (production) not code-web (test harness)
EXPOSE 10000
CMD ["sh", "-c", "node out/server-main.js --host 0.0.0.0 --port ${PORT:-10000} --without-connection-token --accept-server-license-terms"]