refactor: 移除 wrangler.jsonc 中不支持的 secrets 配置并优化类型定义
This commit is contained in:
1 parent
9f5c7c6e99
commit
858dab3187
3 files changed
+5
-26
No files matched your search
Vendored
+4
-1
@@ -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;
|
||||
|
||||
Vendored
+1
-11
@@ -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<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, 'CF_ACCESS_TEAM_DOMAIN' | 'CF_ACCESS_AUD'>
|
||||
> {}
|
||||
}
|
||||
|
||||
// Begin runtime types
|
||||
/*! *****************************************************************************
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user