@checkstack/backend 0.6.4 → 0.6.6
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/CHANGELOG.md +15 -0
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @checkstack/backend
|
|
2
2
|
|
|
3
|
+
## 0.6.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [889dd8c]
|
|
8
|
+
- @checkstack/auth-common@0.6.2
|
|
9
|
+
|
|
10
|
+
## 0.6.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 35a91e5: Fix truncated static file responses in production container
|
|
15
|
+
|
|
16
|
+
Hono's `c.body()` wasn't fully consuming Bun's `ReadableStream` from `file.stream()`, causing truncated responses (e.g. 129B instead of 1098B for the favicon). Switched to reading the file as `ArrayBuffer` before passing to `c.body()`, ensuring the full content is delivered.
|
|
17
|
+
|
|
3
18
|
## 0.6.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -177,9 +177,9 @@ if (frontendDistPath && fs.existsSync(frontendDistPath)) {
|
|
|
177
177
|
/** Serve a static file via Hono's context to preserve headers through middleware. */
|
|
178
178
|
const serveFile = async (c: Context, filePath: string) => {
|
|
179
179
|
const file = Bun.file(filePath);
|
|
180
|
+
const content = await file.arrayBuffer();
|
|
180
181
|
c.header("Content-Type", file.type);
|
|
181
|
-
c.
|
|
182
|
-
return c.body(file.stream());
|
|
182
|
+
return c.body(content);
|
|
183
183
|
};
|
|
184
184
|
|
|
185
185
|
// Serve static assets (JS, CSS, images, etc.)
|