Add R2 MEDIA binding and setup script
This commit is contained in:
Vendored
+5
-3
@@ -1,11 +1,13 @@
|
||||
/* eslint-disable */
|
||||
// Generated by Wrangler by running `wrangler types` (hash: bcadd21c7ffb76583873a6eda250f922)
|
||||
// Generated by Wrangler by running `wrangler types` (hash: 03ae7c4bd9c0facc561b340619a53d21)
|
||||
// Runtime types generated with [email protected] 2026-09-10 nodejs_compat
|
||||
interface __BaseEnv_Env {
|
||||
CACHE: KVNamespace;
|
||||
MEDIA: R2Bucket;
|
||||
DB: D1Database;
|
||||
ASSETS: Fetcher;
|
||||
SITE_NAME: "你的公司名";
|
||||
SITE_NAME: "盈豐太陽能";
|
||||
ADMIN_PASSWORD: string;
|
||||
}
|
||||
declare namespace Cloudflare {
|
||||
interface Env extends __BaseEnv_Env {}
|
||||
@@ -15,7 +17,7 @@ type StringifyValues<EnvType extends Record<string, unknown>> = {
|
||||
[Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;
|
||||
};
|
||||
declare namespace NodeJS {
|
||||
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "SITE_NAME">> {}
|
||||
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "SITE_NAME" | "ADMIN_PASSWORD">> {}
|
||||
}
|
||||
|
||||
// Begin runtime types
|
||||
|
||||
Reference in New Issue
Block a user