Skip to content

Commit 38ede7b

Browse files
Adding some documentation about the monaco loader, both to the main self-hosting README file, and to the docker-compose file.
1 parent fdf4fb5 commit 38ede7b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

self-hosted/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ npx convex import --replace-all <path-to-export-file>
395395
random identifier plus the version of the backend in use. You may opt out of
396396
the beacon by setting the environment variable `DISABLE_BEACON` to `true`.
397397

398+
## Dashboard optional configuration
399+
400+
- The dashboard uses the **monaco-editor** npm package for all the editor-like elements. By default, monaco loads it's core from a CDN. You could configure it to load internally by setting the `NEXT_PUBLIC_LOAD_MONACO_INTERNALLY` environment variable to `true`
401+
398402
## Running the dashboard locally
399403

400404
From the `npm-packages/dashboard-self-hosted` directory, run:

self-hosted/docker/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ services:
5353
- "${DASHBOARD_PORT:-6791}:6791"
5454
environment:
5555
- NEXT_PUBLIC_DEPLOYMENT_URL=${NEXT_PUBLIC_DEPLOYMENT_URL:-http://127.0.0.1:${PORT:-3210}}
56+
- NEXT_PUBLIC_LOAD_MONACO_INTERNALLY
5657
depends_on:
5758
backend:
5859
condition: service_healthy

0 commit comments

Comments
 (0)