mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 13:02:07 +03:00
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:
parent
be5e3d2b97
commit
31e589e362
@ -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",
|
||||
|
@ -63,7 +63,6 @@ export function useRaf(
|
||||
},
|
||||
{ immediate: true },
|
||||
)
|
||||
console.log('onScopeDispose(unmountRaf)?')
|
||||
onScopeDispose(unmountRaf)
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user