mirror of
https://github.com/storytold/craft-wiki.git
synced 2026-11-20 06:21:11 +01:00
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>
17 lines
375 B
JSON
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": {}
|
|
}
|