Refactor Docker deployment: replace wrangler with native Node.js Hono server + SQLite + local R2 storage

Co-authored-by: MarSeventh <[email protected]>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-03 15:50:44 +00:00
co-authored by MarSeventh
parent 0ca6a61c33
commit 08f5d59e0b
11 changed files with 1089 additions and 14 deletions
+7 -2
View File
@@ -1,13 +1,18 @@
{
"type": "module",
"scripts": {
"ci-test": "concurrently --kill-others \"npm start\" \"wait-on http://localhost:8080 && mocha\"",
"ci-test": "concurrently --kill-others \"npm run start:docker\" \"wait-on http://localhost:8080 && mocha\"",
"test": "mocha",
"start": "npx wrangler pages dev ./ --kv \"img_url\" --r2 \"img_r2\" --ip 0.0.0.0 --port 8080 --persist-to ./data"
"start": "npx wrangler pages dev ./ --kv \"img_url\" --r2 \"img_r2\" --ip 0.0.0.0 --port 8080 --persist-to ./data",
"start:docker": "node --import ./server/register.mjs server/index.js"
},
"dependencies": {
"@aws-sdk/client-s3": "3.726.1",
"@cloudflare/pages-plugin-sentry": "^1.1.3",
"@sentry/tracing": "^7.114.0",
"better-sqlite3": "^11.9.1",
"hono": "^4.7.4",
"@hono/node-server": "^1.13.8",
"miniflare": "^3.20240718.0"
},
"overrides": {