Files
cfw-attachment/wrangler.jsonc
Claude db5a499e5c chore: add zod-openapi stack, multipart schema, and PUBLIC_BASE_URL
- bump hono to ^4.12.0, add zod ^4.0.0 and @hono/zod-openapi ^1.4.0
- migration 0002: attachment_upload_sessions + attachment_upload_parts
- wrangler/env: PUBLIC_BASE_URL for public file URLs

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 09:08:42 -07:00

42 lines
892 B
JSON

{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "cfw-attachment",
"main": "src/index.ts",
"account_id": "67720b647ff2b55cf37ba3ef9e677083",
"compatibility_date": "2026-06-10",
"compatibility_flags": ["nodejs_compat"],
"routes": [
{
"pattern": "cfw-attachment.bowong.cc",
"custom_domain": true
}
],
"observability": {
"enabled": true,
"head_sampling_rate": 0.1
},
"services": [
{
"binding": "AUTH",
"service": "cfw-auth"
}
],
"d1_databases": [
{
"binding": "DB",
"database_name": "cfw-attachment",
"database_id": "f8516e33-2902-423c-9a2d-df9974154cda"
}
],
"r2_buckets": [
{
"binding": "ATTACHMENTS",
"bucket_name": "cfw-attachment"
}
],
"vars": {
"MAX_UPLOAD_BYTES": "52428800",
"PUBLIC_BASE_URL": "https://cfw-attachment.bowong.cc"
}
}