import { Plan } from "@prisma/client"; /** * Self-hosted / OSS edition. Prefer S2VID_EDITION; S2YT_EDITION kept for older compose files. */ export function isSelfHostedEdition(): boolean { const edition = process.env.S2VID_EDITION?.trim() || process.env.S2YT_EDITION?.trim() || ""; // Default to self-hosted for this OSS package when unset if (!edition) return true; return edition === "selfhosted"; } /** All Pro features are unlocked in the OSS / self-hosted edition. */ export function hasProFeatures(_plan?: Plan): boolean { return true; }