mirror of
https://github.com/tiennm99/rplace.git
synced 2026-10-11 03:13:48 +00:00
refactor(canvas): drop Upstash entirely after successful DO migration
Production migration ran cleanly (samples_checked: 9, mismatches: []), canvas data preserved, drawing verified by user. Phase 4 cleanup: Removed code: - src/lib/canvas-storage.js (Upstash GETRANGE reader) - src/lib/redis-client.js (Upstash REST helpers) - src/lib/rate-limiter.js (orphan since Phase 2) - src/admin/migrate-from-upstash.js (one-shot importer) - src/durable-objects/canvas-room.js #handleImport route - src/durable-objects/lib/chunk-storage.js importFullCanvas helper - src/worker.js /admin/migrate-from-upstash mount + import Removed tests: - test/lib/canvas-storage.test.js - test/lib/redis-client.test.js - test/integration/redis-canvas-roundtrip.test.js - test/durable-objects/canvas-room.test.js (was skipped pending rewrite) - vitest.integration.config.js (only Redis testcontainers used it) Removed deps: - @upstash/redis, ioredis, testcontainers (-184 packages) Removed constants: - REDIS_KEY_PREFIX, REDIS_CANVAS_KEY (only used by deleted code) Removed package.json scripts: test:integration, test:all Removed CF Worker secrets in production: UPSTASH_REDIS_REST_URL, UPSTASH_REDIS_REST_TOKEN, MIGRATION_TOKEN Tests: 94/94 pass (down from 112 — 18 deleted Upstash-specific). Bundle: 71.90 KiB (down from 79.43 KiB). Production verified: canvas data intact (38% non-zero bytes), migration endpoint returns 404, secret list empty.
This commit is contained in:
1 parent
b890dfb3b7
commit
a977adc62d
18 files changed
+18
-3082
No files matched your search
Generated
-2208
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user