mirror of
https://github.com/ZSCGR/CloudFlare-ImgBed.git
synced 2026-08-13 04:03:42 +08:00
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:
co-authored by
MarSeventh
parent
0ca6a61c33
commit
08f5d59e0b
+7
-2
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user