@decocms/start 0.37.1 → 0.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/start",
3
- "version": "0.37.1",
3
+ "version": "0.37.2",
4
4
  "type": "module",
5
5
  "description": "Deco framework for TanStack Start - CMS bridge, admin protocol, hooks, schema generation",
6
6
  "main": "./src/index.ts",
@@ -873,10 +873,12 @@ export function createDecoWorkerEntry(
873
873
  return resp;
874
874
  }
875
875
 
876
- // Store in Cache API and return
877
- const toReturn = dressResponse(origin, "MISS");
876
+ // Clone for cache BEFORE dressResponse consumes the body stream.
877
+ // dressResponse() calls new Response(resp.body, resp) which locks
878
+ // the ReadableStream. Calling clone() on a locked body corrupts
879
+ // the stream in Workers runtime, causing Error 1101.
878
880
  storeInCache(origin);
879
- return toReturn;
881
+ return dressResponse(origin, "MISS");
880
882
  },
881
883
  };
882
884
  }