mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Fix Cloudflare config persistence
This commit is contained in:
4 files changed
+71
-60
No files matched your search
@@ -106,11 +106,19 @@ const nsiteProviderSchema = baseDeployProviderSchema.extend({
|
||||
blossomServers: z.array(z.string()),
|
||||
});
|
||||
|
||||
const cloudflareProviderSchema = baseDeployProviderSchema.extend({
|
||||
type: z.literal('cloudflare'),
|
||||
apiKey: z.string(),
|
||||
accountId: z.string(),
|
||||
baseURL: z.string().optional(),
|
||||
});
|
||||
|
||||
const deployProviderSchema: z.ZodType<DeployProvider> = z.discriminatedUnion('type', [
|
||||
shakespeareDeployProviderSchema,
|
||||
netlifyProviderSchema,
|
||||
vercelProviderSchema,
|
||||
nsiteProviderSchema,
|
||||
cloudflareProviderSchema,
|
||||
]);
|
||||
|
||||
const deploySettingsSchema = z.object({
|
||||
|
||||
Reference in new issue
Block a user