Skip to content

Commit 91c481f

Browse files
committed
fix: update deploy workflow for docrag naming, set documents to view mode
1 parent b9ec465 commit 91c481f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/deploy-rag.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,6 @@ jobs:
5656
working-directory: rag/apps/web
5757
env:
5858
VITE_API_URL: ${{ vars.VITE_API_URL }}
59-
- run: bunx wrangler pages deploy dist --project-name=rag-demo-web
60-
working-directory: rag/apps/web
59+
BASE_PATH: /docrag/
60+
- run: mkdir -p dist/docrag && cp -r apps/web/dist/* dist/docrag/
61+
- run: bunx wrangler pages deploy dist --project-name=superdoc-demos --commit-dirty=true

rag/apps/web/components/DocumentViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function DocumentViewer({ documentId, citation, filename }: Props) {
6767
superdocRef.current = new SuperDoc({
6868
selector: containerRef.current,
6969
document: docFile,
70-
documentMode: "editing",
70+
documentMode: "viewing",
7171
comments: { visible: true },
7272
trackChanges: { visible: true },
7373
});

0 commit comments

Comments
 (0)