- Replace server-rendered HTML with React 18 + Vite + shadcn/ui dashboard
(mail list, detail panel, Extracted/Raw/Rendered tabs, sonner toasts)
- Add REST API endpoints: GET /api/mails, GET /api/mails/:id
- Fix MIME base64 body extraction (rewrite extractMailBodies with proper
multipart boundary parsing and atob decoding)
- Add isPromotionalEmail() pre-LLM filter (List-Unsubscribe, List-ID,
Precedence: bulk, ESP X-headers) to avoid wasting AI tokens on ads
- Fix codeAndLink() to use regex URL extraction instead of comma-split,
preventing layout break on URLs containing commas
- Add ASSETS binding to wrangler.toml.example for static frontend serving
- Migrate from npm to pnpm; add pnpm-workspace.yaml
- Add CLAUDE.md and update AGENTS.md with current architecture
29 lines
614 B
Plaintext
29 lines
614 B
Plaintext
name = "auth-inbox"
|
|
main = "src/index.ts"
|
|
compatibility_date = "2024-10-04"
|
|
compatibility_flags = ["nodejs_compat"]
|
|
|
|
[assets]
|
|
directory = "./web/dist"
|
|
binding = "ASSETS"
|
|
|
|
[observability]
|
|
enabled = true
|
|
|
|
[vars]
|
|
UseBark = "true"
|
|
barkUrl = "https://api.day.app"
|
|
barkTokens = "[token1, token2]"
|
|
FrontEndAdminID = "admin"
|
|
FrontEndAdminPassword = "password"
|
|
GoogleAPIKey = "xxxxxxxxxxx"
|
|
GeminiModel = "gemini-2.0-flash"
|
|
OpenAIAPIKey = ""
|
|
OpenAIBaseUrl = "https://api.openai.com"
|
|
OpenAIModel = "gpt-4o-mini"
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "inbox-d1"
|
|
database_id = "********-****-****-****-************"
|