Skip to content

Commit

Permalink
Fix YDOC_SERVER_URL and PROJECT_MANAGER_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
vitvakatu committed Dec 20, 2024
1 parent 5f9247a commit 0e2313f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/gui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ const isE2E = process.env.INTEGRATION_TEST === 'true'

const entrypoint = isE2E ? './src/project-view/test-entrypoint.ts' : './src/entrypoint.ts'

process.env.ENSO_IDE_YDOC_SERVER_URL ||= isDevMode ? 'ws://__HOSTNAME__:5976' : undefined
process.env.ENSO_IDE_PROJECT_MANAGER_URL ||= isDevMode ? 'ws://__HOSTNAME__:30535' : undefined
if (isDevMode) {
process.env.ENSO_IDE_YDOC_SERVER_URL ||= 'ws://__HOSTNAME__:5976'
process.env.ENSO_IDE_PROJECT_MANAGER_URL ||= 'ws://__HOSTNAME__:30535'
}

// https://vitejs.dev/config/
export default defineConfig({
Expand Down

0 comments on commit 0e2313f

Please sign in to comment.