diff --git a/src/app.d.ts b/src/app.d.ts index f83fb02..a79f138 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -3,7 +3,10 @@ declare global { namespace App { interface Platform { - env: Env; + env: Env & { + CF_ACCESS_TEAM_DOMAIN?: string; + CF_ACCESS_AUD?: string; + }; context: ExecutionContext; caches: CacheStorage & { default: Cache }; cf?: IncomingRequestCfProperties; diff --git a/worker-configuration.d.ts b/worker-configuration.d.ts index 330edc0..e664b91 100644 --- a/worker-configuration.d.ts +++ b/worker-configuration.d.ts @@ -1,24 +1,14 @@ /* eslint-disable */ -// Generated by Wrangler by running `wrangler types` (hash: b2893aae5044c36bb6a436affdcfe1fc) +// Generated by Wrangler by running `wrangler types` (hash: 595eaffe197c5cd34fd594e9940c7cf0) // Runtime types generated with workerd@1.20260801.1 2026-08-07 nodejs_compat interface __BaseEnv_Env { R2: R2Bucket; DB: D1Database; - CF_ACCESS_TEAM_DOMAIN: string; - CF_ACCESS_AUD: string; } declare namespace Cloudflare { interface Env extends __BaseEnv_Env {} } interface Env extends __BaseEnv_Env {} -type StringifyValues> = { - [Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string; -}; -declare namespace NodeJS { - interface ProcessEnv extends StringifyValues< - Pick - > {} -} // Begin runtime types /*! ***************************************************************************** diff --git a/wrangler.jsonc b/wrangler.jsonc index 22315f6..da2ae74 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -4,20 +4,6 @@ "compatibility_date": "2026-08-07", "compatibility_flags": ["nodejs_compat"], "pages_build_output_dir": ".svelte-kit/cloudflare", - "secrets": { - "required": ["CF_ACCESS_TEAM_DOMAIN", "CF_ACCESS_AUD"] - }, - "observability": { - "enabled": true, - "logs": { - "enabled": true, - "head_sampling_rate": 1 - }, - "traces": { - "enabled": true, - "head_sampling_rate": 0.01 - } - }, "d1_databases": [ { "binding": "DB",