mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-23 00:21:28 +00:00
feat(config): switch to routes-only config, drop default channel
Remove hardcoded DEFAULT_ROUTES and Config.discord.defaultChannelId so forwarding is driven entirely by user-defined routes (empty KV = no forwarding). Add ADMIN_USER_IDS, DISCORD_GATEWAY_ENABLED and ASSETS to Env.
This commit is contained in:
parent
ccab01d23a
commit
4d5c90773d
2 changed files with 32 additions and 69 deletions
|
|
@ -7,6 +7,9 @@ export interface Env {
|
|||
DISCORD_TOKEN?: string;
|
||||
DISCORD_CHANNEL_ID?: string;
|
||||
BASE_URL?: string;
|
||||
ADMIN_USER_IDS?: string;
|
||||
DISCORD_GATEWAY_ENABLED?: string;
|
||||
ASSETS?: Fetcher;
|
||||
KV: KVNamespace;
|
||||
DISCORD_GATEWAY: DurableObjectNamespace;
|
||||
}
|
||||
|
|
@ -22,7 +25,6 @@ export interface Config {
|
|||
};
|
||||
discord: {
|
||||
token: string;
|
||||
defaultChannelId: string;
|
||||
};
|
||||
routes: Route[];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue