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:
Rotimi Best
2026-03-27 09:12:53 +01:00
parent 3919ff6c2f
commit f3d212f984
23 changed files with 1376 additions and 244 deletions
@@ -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';