v0.84.1: the local-dev media fix completed
Completes 0.84.0's local-dev promise. A second miniflare serialization site, missed by 0.84.0 and caught by the first consumer verification, still failed every /media read under vite dev.
Fixed
- The media route's second local-dev serialization site. The route called
writeHttpMetadata(headers)on the object R2 returned; under miniflare'sgetPlatformProxythat object is an RPC stub whose method call cannot marshal a liveHeadersargument, so every/mediaread still 500'd under a consumer'svite dev. The route now builds response headers from the object's plainhttpMetadatafields and never calls a method on the returned object. Verified end-to-end on a consumer checkout: seed,vite dev, and a media GET returns 200 with the stored content type. ThedevMediaFallbackdeletion note in 0.84.0's changelog applies as of this release. cairn-media-seedstores each object's content type (derived from the manifest extension, passed aswrangler r2 object put --content-type), so local dev serves the sameContent-Typeproduction does instead of the route's octet-stream fallback. If you seeded with 0.84.0, re-runnpx cairn-media-seedafter upgrading.
Consumers must: nothing.