[Issue]: Write Local Sync Setup Guide
Parent Epic: #57 - UDL as Production Data Layer
Phase: 6 - Documentation
Estimated Time: 0.5 day
Summary
Write documentation explaining how developers can configure their local UDL instance to sync with a remote UDL server via WebSocket and the sync API.
Context from Epic
The epic describes the local sync setup:
remote: {
url: 'https://udl.example.com/graphql', // Remote UDL URL
websockets: true, // Enable WebSocket sync
}
Developers need a guide to connect their local dev environment to a production UDL instance for real-time updates.
Technical Specification
Documentation Content
Local Sync Setup Guide:
-
Introduction
- Why sync local with remote
- Architecture: local UDL ↔ remote UDL
-
Configuration
// udl.config.ts
export const config = defineConfig({
port: 4000,
plugins: [...],
remote: {
url: 'https://udl.example.com/graphql',
websockets: true,
},
});
-
How Sync Works
- Initial sync on startup (via /_sync endpoint)
- Real-time updates via WebSocket
- Handling disconnections and reconnection
-
WebSocket Events
- node:created, node:updated, node:deleted
- Subscribing to specific node types
-
Troubleshooting
- Connection issues
- Sync lag
- Debugging tips
Files to Create
docs/content/4.deployment/7.local-sync.md
Implementation Tasks
Acceptance Criteria
Dependencies
Definition of Done
[Issue]: Write Local Sync Setup Guide
Parent Epic: #57 - UDL as Production Data Layer
Phase: 6 - Documentation
Estimated Time: 0.5 day
Summary
Write documentation explaining how developers can configure their local UDL instance to sync with a remote UDL server via WebSocket and the sync API.
Context from Epic
The epic describes the local sync setup:
Developers need a guide to connect their local dev environment to a production UDL instance for real-time updates.
Technical Specification
Documentation Content
Local Sync Setup Guide:
Introduction
Configuration
How Sync Works
WebSocket Events
Troubleshooting
Files to Create
docs/content/4.deployment/7.local-sync.mdImplementation Tasks
Acceptance Criteria
Dependencies
Definition of Done