Merge pull request #5 from bipprojectbali/nico/26-feb-26/fix-seed-2
Fix Gambar
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"test": "bun test __tests__/api",
|
||||
"test:ui": "bun test --ui __tests__/api",
|
||||
"test:e2e": "bun run build && playwright test",
|
||||
"build": "bun run scripts/build.ts",
|
||||
"build": "bun build ./src/index.html --outdir=dist --sourcemap --target=browser --minify --define:process.env.NODE_ENV='\"production\"' --env='VITE_*' && cp -r public/* dist/ 2>/dev/null || true",
|
||||
"start": "NODE_ENV=production bun src/index.ts",
|
||||
"seed": "bun prisma/seed.ts"
|
||||
},
|
||||
|
||||
@@ -110,12 +110,10 @@ if (!isProduction) {
|
||||
end(data: any) {
|
||||
// Handle potential Buffer or string data from Vite
|
||||
let body = data;
|
||||
|
||||
// If we have collected chunks from write() calls, combine them
|
||||
if (this._chunks && this._chunks.length > 0) {
|
||||
body = Buffer.concat(this._chunks);
|
||||
}
|
||||
|
||||
if (data instanceof Uint8Array) {
|
||||
body = data;
|
||||
} else if (typeof data === "string") {
|
||||
@@ -251,4 +249,3 @@ console.log(
|
||||
);
|
||||
|
||||
export type ApiApp = typeof app;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user