Implement Cloudflare custom domain management flow
- Added support for connecting, refreshing, and removing custom domains through Cloudflare. - Updated API routes and validation schemas to handle new domain actions. - Refactored domain management logic in the dashboard to accommodate Cloudflare integration. - Enhanced user experience with clear status messages and DNS instructions for domain setup. - Updated translations and UI components to reflect new domain management features.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const ZDomainAction = z.enum(['connect', 'refresh', 'remove']);
|
||||
|
||||
export const ZDomainActionRequest = z.object({
|
||||
action: ZDomainAction,
|
||||
domain: z.string().min(1)
|
||||
});
|
||||
|
||||
export type TDomainAction = z.infer<typeof ZDomainAction>;
|
||||
export type TDomainActionRequest = z.infer<typeof ZDomainActionRequest>;
|
||||
@@ -1,5 +1,6 @@
|
||||
export * from './audience';
|
||||
export * from './organization';
|
||||
export * from './domain';
|
||||
export * from './quiz';
|
||||
export * from './exercise';
|
||||
export * from './invite';
|
||||
|
||||
Reference in New Issue
Block a user