feat: load secrets from environment variables
This commit is contained in:
1 file changed
+4
@@ -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>
|
||||||
Reference in new issue
Block a user