feat: load secrets from environment variables

This commit is contained in:
zihluwang committed 2025-06-28 23:24:51 +08:00
1 parent afa9443086
commit a229dd9789
1 file changed
+4
+4
View File
@@ -13,6 +13,10 @@
export default { export default {
async fetch(request, env, ctx): Promise<Response> { async fetch(request, env, ctx): Promise<Response> {
const uniApiToken = env.UNIAPI_TOKEN;
const larkBotId = env.LARK_BOT_ID;
const larkSignKey = env.LARK_SIGN_KEY;
return new Response("Hello World!") return new Response("Hello World!")
}, },
} satisfies ExportedHandler<Env> } satisfies ExportedHandler<Env>