Files
craft-wiki/wrangler.jsonc
FredAppsandClaude Opus 5.5 64b3c3b7c6 Let Senior Contributors edit the wiki with Discord sign-in
Add a Worker that signs editors in with Discord, checks the Senior Contributor role, and serves the editor's GitHub API with a server-side token limited to wiki content. GitHub tokens pass through unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 21:41:07 +01:00

17 lines
375 B
JSON

{
"name": "craft-wiki",
"compatibility_date": "2026-11-06",
"main": "worker/index.js",
"assets": {
"directory": "./dist",
"binding": "ASSETS",
"run_worker_first": ["/api/*"]
},
"vars": {
"DISCORD_CLIENT_ID": "1568360917090181254",
"DISCORD_GUILD_ID": "1359579021108842617",
"DISCORD_ROLE_ID": "1559142504920653834"
},
"previews": {}
}