Do not default to development ydoc server in prod build. (#10786)

Fixes https://github.com/enso-org/enso/issues/10784
This commit is contained in:
Paweł Grabarz 2024-08-12 18:52:44 +02:00 committed by GitHub
parent be5e3d2b97
commit 31e589e362
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,7 @@
"email": "contact@enso.org"
},
"scripts": {
"dev": "echo DEPRECATED! Use `pnpm dev:gui` in workspace root directory.",
"dev": "echo DEPRECATED! Use `pnpm -w dev:gui` instead.",
"dev:vite": "vite",
"build": "corepack pnpm -r --filter enso-dashboard run compile && corepack pnpm run build:vite",
"build-cloud": "cross-env CLOUD_BUILD=true corepack pnpm run build",

View File

@ -63,7 +63,6 @@ export function useRaf(
},
{ immediate: true },
)
console.log('onScopeDispose(unmountRaf)?')
onScopeDispose(unmountRaf)
}

View File

@ -15,7 +15,9 @@ const projectManagerUrl =
process.env.E2E === 'true' ? 'ws://127.0.0.1:30536' : 'ws://127.0.0.1:30535'
const IS_CLOUD_BUILD = process.env.CLOUD_BUILD === 'true'
const YDOC_SERVER_URL = process.env.ENSO_POLYGLOT_YDOC_SERVER ?? 'ws://localhost:5976'
const YDOC_SERVER_URL =
process.env.ENSO_POLYGLOT_YDOC_SERVER ??
(process.env.NODE_ENV === 'development' ? 'ws://localhost:5976' : undefined)
await readEnvironmentFromFile()