跳转到内容

utils/astroEnvConfig

此内容尚不支持你的语言。

const addAstroEnvConfig: HookUtility<"astro:config:setup", [{
schema: Record<string,
| {
access: "public";
context: "client";
}
| {
access: "public";
context: "server";
}
| {
access: "secret";
context: "server";
} &
| {
default: string;
endsWith: string;
includes: string;
length: number;
max: number;
min: number;
optional: boolean;
startsWith: string;
type: "string";
url: boolean;
}
| {
default: number;
gt: number;
int: boolean;
lt: number;
max: number;
min: number;
optional: boolean;
type: "number";
}
| {
default: boolean;
optional: boolean;
type: "boolean";
}
| {
default: string;
optional: boolean;
type: "enum";
values: string[];
}>;
validateSecrets: boolean;
}], void>;

Defined in: studiocms/packages/studiocms/src/utils/astroEnvConfig.ts:7^

Add Astro Environment Variables Config for using ‘astro:env’