Skip to content

Commit 7892230

Browse files
committed
test-staging
1 parent 317cfd7 commit 7892230

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/docker-hub.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- 'main'
9+
- 'feature/block-editing-collab'
910
tags:
1011
- 'v*'
1112
pull_request:

src/frontend/apps/impress/src/features/docs/doc-management/stores/useProviderStore.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ export const useProviderStore = create<UseCollaborationStore>((set, get) => ({
3131
Y.applyUpdate(doc, Buffer.from(initialDoc, 'base64'));
3232
}
3333

34+
// if query string is_test=true, use localhost 6464
35+
const wsUrlTest = new URLSearchParams(window.location.search).get('is_test')
36+
? 'ws://localhost:6464'
37+
: wsUrl;
38+
3439
const provider = new HocuspocusProvider({
35-
url: wsUrl,
40+
url: wsUrlTest,
3641
name: storeId,
3742
document: doc,
3843
onStatus: ({ status }) => {

0 commit comments

Comments
 (0)