Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
115 lines (115 loc) · 4.93 KB
/
Copy pathpackage.json
File metadata and controls
115 lines (115 loc) · 4.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "mailflare",
"version": "0.2.1",
"private": true,
"scripts": {
"dev": "npm run db:bundle && next dev",
"build": "npm run db:bundle && next build",
"build:next": "npm run db:bundle && next build",
"start": "next start",
"lint": "eslint .",
"deploy": "npm run db:bundle && opennextjs-cloudflare build && npm run deploy:worker",
"deploy:worker": "OPEN_NEXT_DEPLOY=true wrangler deploy",
"deploy:local": "npm run deploy",
"upload": "npm run db:bundle && opennextjs-cloudflare build && OPEN_NEXT_DEPLOY=true wrangler versions upload",
"preview": "npm run db:bundle && opennextjs-cloudflare build && opennextjs-cloudflare preview",
"cf-typegen": "wrangler types --env-interface CloudflareEnv ./cloudflare-env.d.ts",
"db:bundle": "node scripts/generate-migration-bundle.mjs",
"db:generate": "drizzle-kit generate",
"db:migrate:local": "wrangler d1 migrations apply DB --local",
"db:migrate:remote": "wrangler d1 migrations apply DB --remote",
"migrate": "wrangler d1 migrations apply DB",
"db:seed": "curl -X POST http://localhost:3000/api/seed",
"build:node": "npm run db:bundle && MAILFLARE_RUNTIME=node next build && node scripts/build-server.mjs",
"start:node": "MAILFLARE_RUNTIME=node NODE_ENV=production node dist/server.mjs",
"dev:node": "npm run db:bundle && MAILFLARE_RUNTIME=node node --import tsx server/index.ts"
},
"cloudflare": {
"bindings": {
"CF_TOKEN": {
"description": "Runtime Cloudflare API token used by Mailflare onboarding to call the Zones, DNS, and Email Routing APIs. Cloudflare's deploy/build token is not passed to the app, so create this separately at https://dash.cloudflare.com/profile/api-tokens with `Zone Read`, `DNS Edit`, `Email Routing Edit`, and `Email Routing Rules Write` permissions for the zones you will connect. Add `Email Sending Edit` to enable outbound mail. Paste only the token secret value, without `Bearer`."
},
"TURNSTILE_SECRET_KEY": {
"description": "Cloudflare Turnstile secret key used to verify login and first-run registration challenges. Pair with NEXT_PUBLIC_TURNSTILE_SITE_KEY at build time."
},
"NEXT_PUBLIC_TURNSTILE_SITE_KEY": {
"description": "Cloudflare Turnstile public site key used by the login and first-run registration widgets."
},
"CF_EMAIL_WORKER_NAME": {
"description": "Worker name used when creating Cloudflare Email Routing rules. Set this to the deployed Worker name; if you rename the Worker, update this value too."
},
"GITHUB_UPDATE_TOKEN": {
"description": "Fine-grained GitHub token for the installation repository with Actions: write permission. Used by the admin update endpoint to dispatch deploy-update.yml."
},
"GITHUB_UPDATE_REF": {
"description": "Optional branch used to dispatch updates. Leave blank to use the repository default branch."
},
"GITHUB_UPDATE_REPO": {
"description": "Your github repository that connect to cloudflare worker"
},
"CF_EMAIL": {
"description": "Legacy Global API Key auth only. Use this with `CF_API_KEY` instead of `CF_TOKEN`."
},
"CF_API_KEY": {
"description": "Legacy Global API Key auth only. Prefer `CF_TOKEN` for new deployments."
}
}
},
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@opennextjs/cloudflare": "^1.19.9",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-toast": "^1.2.15",
"@tanstack/react-query": "^5.100.11",
"bcryptjs": "^3.0.3",
"better-sqlite3": "^13.0.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dayjs": "^1.11.20",
"drizzle-orm": "^0.45.2",
"lucide-react": "^1.16.0",
"mimetext": "^3.0.28",
"nanoid": "^5.1.16",
"next": "16.3.3",
"nodemailer": "^10.0.9",
"postal-mime": "^2.7.4",
"qrcode": "^1.5.4",
"react": "^19.1.7",
"react-dom": "^19.1.7",
"smtp-server": "^3.19.12",
"tailwind-merge": "^3.6.0",
"zod": "^4.4.3"
},
"devDependencies": {
"@cloudflare/workers-types": "^5.20260828.1",
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"@types/bcryptjs": "^2.4.6",
"@types/better-sqlite3": "^9.6.0",
"@types/node": "^20.19.41",
"@types/nodemailer": "^8.0.1",
"@types/qrcode": "^1.5.6",
"@types/react": "^19.1.7",
"@types/react-dom": "^19.1.7",
"@types/smtp-server": "^3.5.13",
"drizzle-kit": "^0.31.10",
"esbuild": "^0.28.2",
"eslint": "^9",
"eslint-config-next": "16.3.3",
"tailwindcss": "^4",
"tsx": "^4.23.13",
"typescript": "^5.7.4",
"wrangler": "^4.127.1"
},
"overrides": {
"@esbuild-kit/core-utils": {
"esbuild": "^0.25.4"
}
}
}