feat(feature-flags): fixes #1592, introduces new flags DISABLE_SIGNUPS and DISABLE_EMAIL_AUTH, renamed STORAGE_SKIP_BUCKET_CHECK

This commit is contained in:
Amruth Pillai
2024-05-29 10:30:38 +02:00
parent 1191bbca67
commit d18ef2e1a5
23 changed files with 1697 additions and 1366 deletions

View File

@ -0,0 +1,9 @@
import { createZodDto } from "nestjs-zod/dto";
import { z } from "nestjs-zod/z";
export const featureSchema = z.object({
isSignupsDisabled: z.boolean().default(false),
isEmailAuthDisabled: z.boolean().default(false),
});
export class FeatureDto extends createZodDto(featureSchema) {}

View File

@ -1,5 +1,7 @@
// @index('./*', f => `export * from "${f.path}";`)
export * from "./auth";
export * from "./contributors";
export * from "./feature";
export * from "./resume";
export * from "./secrets";
export * from "./statistics";