- 移除手动 SPA fallback 逻辑,使用 Cloudflare Assets 原生 SPA 支持 - 修复刷新时认证状态丢失导致跳转首页的问题 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
456 B
Plaintext
21 lines
456 B
Plaintext
name = "awsl-one-api"
|
|
main = "src/index.ts"
|
|
compatibility_date = "2025-04-28"
|
|
routes = [
|
|
{ pattern = "your-domain.com-here", custom_domain = true },
|
|
]
|
|
|
|
[vars]
|
|
ADMIN_TOKEN = "your-secure-admin-token-here"
|
|
|
|
[assets]
|
|
directory = "./public"
|
|
not_found_handling = "single-page-application"
|
|
binding = "ASSETS"
|
|
run_worker_first = ["/api/*", "/v1/*"]
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "your-database-name-here"
|
|
database_id = "your-database-id-here"
|