Files
web2app/wrangler.toml
shumengya 45415da2e2 fix(tauri): bypass WebView CORS for packaged R2/S3 apps
Preserve aws4fetch Request headers in the shell fetch interceptor, and
proxy cross-origin HTTP through a native reqwest command so Windows/Android
builds work even when remote CORS only allows web origins.
2026-07-19 10:11:50 +08:00

22 lines
619 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name = "web2app"
main = "worker/src/index.ts"
compatibility_date = "2024-11-01"
[assets]
directory = "./frontend/dist"
binding = "ASSETS"
# SPA未匹配的前端路由如 /jobs/:id经 env.ASSETS.fetch 回退到 index.html
not_found_handling = "single-page-application"
# 运行 `wrangler d1 create web2app` 后将输出的 database_id 替换下方占位符
[[d1_databases]]
binding = "DB"
database_name = "web2app"
database_id = "e45bfa13-525b-465c-8dbb-b1a716751b44"
migrations_dir = "worker/migrations"
[vars]
DEFAULT_BRANCH = "main"
MAX_UPLOAD_MB = "25"
GITHUB_OWNER = "shumengya"
GITHUB_REPO = "Web2App"