mirror of
https://github.com/xtr-dev/rondevu-server.git
synced 2025-12-08 00:33:24 +00:00
- Added hash-id.ts utility for SHA-256 content hashing
- Offer IDs now generated from hash of {sdp, topics} (sorted)
- Removed peerId from hash (inferred from authentication)
- Server generates deterministic IDs for idempotent offer creation
- Updated SQLite and D1 storage implementations
- Removed optional id field from CreateOfferRequest
- Same offer content always produces same ID
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
665 B
Plaintext
27 lines
665 B
Plaintext
name = "rondevu"
|
|
main = "src/worker.ts"
|
|
compatibility_date = "2024-01-01"
|
|
|
|
# KV Namespace binding
|
|
[[kv_namespaces]]
|
|
binding = "SESSIONS"
|
|
id = "" # Replace with your KV namespace ID
|
|
|
|
# Environment variables
|
|
[vars]
|
|
SESSION_TIMEOUT = "300000" # 5 minutes in milliseconds
|
|
CORS_ORIGINS = "*" # Comma-separated list of allowed origins
|
|
|
|
# Build configuration
|
|
[build]
|
|
command = ""
|
|
|
|
# For local development
|
|
# Run: npx wrangler dev
|
|
# The local KV will be created automatically
|
|
|
|
# For production deployment:
|
|
# 1. Create KV namespace: npx wrangler kv:namespace create SESSIONS
|
|
# 2. Update the 'id' field above with the returned namespace ID
|
|
# 3. Deploy: npx wrangler deploy
|