Skip to content

Commit

Permalink
fix: allow function-specific properties in environment overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarber committed Dec 19, 2024
1 parent f92cb35 commit e5bb88c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion types/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,18 @@ export type GcpConfig = (
) & {
cloud: "gcp";
name?: string;
environmentOverrides?: Partial<Record<string, Partial<Omit<GcpConfig, "environmentOverrides">>>>;
environmentOverrides?: {
[env: string]: Partial<
Omit<
| HttpConfig
| EventConfig
| ScheduleConfig
| QueueConfig
| FirestoreConfig
| StorageConfig
| ScheduledJobConfig,
"type" | "cloud" // Prevent changing the function type or cloud provider in env overrides
>
>;
};
};

0 comments on commit e5bb88c

Please sign in to comment.