Update file upload handling to use Busboy for improved efficiency

Replace Multer with Busboy for multipart/form-data parsing in the webhook endpoint, enhancing file handling and dependency management.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cfbfe47c-0c9a-4ebf-8a41-2937407eccff
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cfbfe47c-0c9a-4ebf-8a41-2937407eccff/0kKwZtc
This commit is contained in:
michaelschal committed 2025-09-03 09:37:05 +00:00
1 parent fdbbb14a4f
commit caee73e16b
5 files changed
+284 -121

No files matched your search

@@ -0,0 +1,199 @@
Actions
}
✅ Using DatabaseStorage (production PostgreSQL)
⏰ Automatic backup scheduled for daily 2:00 AM+ (native timer)
file:///app/dist/index.js:11
throw Error('Dynamic require of "' + x2 + '" is not supported');

^
Error: Dynamic require of "path" is not supported
at file:///app/dist/index.js:11:9
at node_modules/mime-types/index.js (file:///app/dist/index.js:13971:19)
at __require2 (file:///app/dist/index.js:17:50)
at node_modules/type-is/index.js (file:///app/dist/index.js:14061:16)
at __require2 (file:///app/dist/index.js:17:50)
at node_modules/multer/lib/make-middleware.js (file:///app/dist/index.js:18269:15)
at __require2 (file:///app/dist/index.js:17:50)
at node_modules/multer/index.js (file:///app/dist/index.js:22048:26)
at __require2 (file:///app/dist/index.js:17:50)
at file:///app/dist/index.js:29500:29
Node.js v20.19.4
Applying DLC migration...
NOTICE: column "stock_epuise" of relation "dlc_products" already exists, skipping
NOTICE: column "stock_epuise_by" of relation "dlc_products" already exists, skipping
NOTICE: column "stock_epuise_at" of relation "dlc_products" already exists, skipping
NOTICE: relation "idx_dlc_products_stock_epuise" already exists, skipping
ALTER TABLE
␍CREATE INDEX
🔗 Database initialization: {
NODE_ENV: 'production',
isProduction: true,
hasDbUrl: true,
dbHost: 'logiflow-db'
}
🐳 PRODUCTION: Using standard PostgreSQL
✅ PostgreSQL connection test successful
🔗 Database initialization: {
NODE_ENV: 'production',
isProduction: true,
hasDbUrl: true,
dbHost: 'logiflow-db:5432'
}
✅ Using DatabaseStorage (production PostgreSQL)
⏰ Automatic backup scheduled for daily 2:00 AM+ (native timer)
file:///app/dist/index.js:11
throw Error('Dynamic require of "' + x2 + '" is not supported');

^
Error: Dynamic require of "path" is not supported
at file:///app/dist/index.js:11:9
at node_modules/mime-types/index.js (file:///app/dist/index.js:13971:19)
at __require2 (file:///app/dist/index.js:17:50)
at node_modules/type-is/index.js (file:///app/dist/index.js:14061:16)
at __require2 (file:///app/dist/index.js:17:50)
at node_modules/multer/lib/make-middleware.js (file:///app/dist/index.js:18269:15)
at __require2 (file:///app/dist/index.js:17:50)
at node_modules/multer/index.js (file:///app/dist/index.js:22048:26)
at __require2 (file:///app/dist/index.js:17:50)
at file:///app/dist/index.js:29500:29
Node.js v20.19.4
Applying DLC migration...
NOTICE: column "stock_epuise" of relation "dlc_products" already exists, skipping
NOTICE: column "stock_epuise_by" of relation "dlc_products" already exists, skipping
NOTICE: column "stock_epuise_at" of relation "dlc_products" already exists, skipping
NOTICE: relation "idx_dlc_products_stock_epuise" already exists, skipping
ALTER TABLE
␍CREATE INDEX
🔗 Database initialization: {
NODE_ENV: 'production',
isProduction: true,
hasDbUrl: true,
dbHost: 'logiflow-db'
}
🐳 PRODUCTION: Using standard PostgreSQL
✅ PostgreSQL connection test successful
🔗 Database initialization: {
NODE_ENV: 'production',
isProduction: true,
hasDbUrl: true,
dbHost: 'logiflow-db:5432'
}
✅ Using DatabaseStorage (production PostgreSQL)
⏰ Automatic backup scheduled for daily 2:00 AM+ (native timer)
file:///app/dist/index.js:11
throw Error('Dynamic require of "' + x2 + '" is not supported');

^
Error: Dynamic require of "path" is not supported
at file:///app/dist/index.js:11:9
at node_modules/mime-types/index.js (file:///app/dist/index.js:13971:19)
at __require2 (file:///app/dist/index.js:17:50)
at node_modules/type-is/index.js (file:///app/dist/index.js:14061:16)
at __require2 (file:///app/dist/index.js:17:50)
at node_modules/multer/lib/make-middleware.js (file:///app/dist/index.js:18269:15)
at __require2 (file:///app/dist/index.js:17:50)
at node_modules/multer/index.js (file:///app/dist/index.js:22048:26)
at __require2 (file:///app/dist/index.js:17:50)
at file:///app/dist/index.js:29500:29
Node.js v20.19.4