Files
mailflare/package.json
T

105 lines
4.5 KiB
JSON

{
"name": "mailflare",
"version": "0.2.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"deploy": "opennextjs-cloudflare build && npm run deploy:worker",
"deploy:worker": "OPEN_NEXT_DEPLOY=true wrangler deploy",
"deploy:with-migrations": "npm run db:migrate:remote && npm run deploy",
"upload": "opennextjs-cloudflare build && OPEN_NEXT_DEPLOY=true wrangler versions upload",
"preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
"cf-typegen": "wrangler types --env-interface CloudflareEnv ./cloudflare-env.d.ts",
"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"
},
"cloudflare": {
"bindings": {
"CF_TOKEN": {
"description": "Runtime Cloudflare API token used by Mailflare onboarding to call the Zones 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`, `Email Routing Edit`, `Email Sending Edit`, and `Email Routing Rules Write` permissions for the zones you will connect. Paste only the token secret value, without `Bearer`."
},
"CF_AID": {
"description": "Cloudflare account ID. Required for automatic database backups."
},
"D1_DATABASE_ID": {
"description": "Cloudflare D1 database ID for the mailflare database. Required for automatic database backups."
},
"D1_BACKUP_TOKEN": {
"description": "Optional Cloudflare API token allowed to export the target D1 database. Store this as a secret. If omitted, backups reuse CF_TOKEN."
},
"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, Contents: write read permission. Used only by the admin update endpoint to dispatch 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",
"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.11",
"next": "16.2.6",
"postal-mime": "^2.7.4",
"react": "^19.1.7",
"react-dom": "^19.1.7",
"tailwind-merge": "^3.6.0",
"zod": "^4.4.3"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20260520.1",
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"@types/bcryptjs": "^2.4.6",
"@types/node": "^20.19.41",
"@types/react": "^19.1.7",
"@types/react-dom": "^19.1.7",
"drizzle-kit": "^0.31.10",
"eslint": "^9",
"eslint-config-next": "16.2.6",
"tailwindcss": "^4",
"typescript": "^5.7.4",
"wrangler": "^4.98.0"
}
}