Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .env.example

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile.collab
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN npm install
# Copy server code
COPY server/ ./server/
COPY lib/ ./lib/
COPY next-auth.d.ts ./
COPY types/ ./types/
COPY tsconfig.json ./

# Expose port
Expand Down
4 changes: 2 additions & 2 deletions auth.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Google from "next-auth/providers/google"
import type { NextAuthConfig } from "next-auth"
import type { AuthConfig } from "@auth/core"
export default {
providers: [
// GitHub({
Expand All @@ -12,4 +12,4 @@ export default {
clientSecret: process.env.AUTH_GOOGLE_SECRET,
})
]
} satisfies NextAuthConfig
} satisfies AuthConfig
8 changes: 0 additions & 8 deletions lib/yjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ export function getOrCreateYDoc(roomId: string, token: string) {

yDocs.set(roomId, { doc, provider });

// Optional: Clean up when the connection is closed to prevent memory leaks
provider.on('synced', (isSynced: unknown) => {
console.log(`[Yjs] Room ${roomId} mapped. Synced:`, isSynced as boolean);
});
provider.on('status', (event: unknown) => {
console.log(`[Yjs] Room ${roomId} status:`, (event as { status: 'connected' | 'disconnected' | 'connecting' }).status);
});

return { doc, provider };
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading