mirror of
https://git.atakanozban.com/Songs2VID/songs2vid.git
synced 2026-11-14 21:29:49 +01:00
10 lines
255 B
TypeScript
10 lines
255 B
TypeScript
|
|
import { Plan } from "@prisma/client";
|
||
|
|
|
||
|
|
export function isSelfHostedEdition(): boolean {
|
||
|
|
return process.env.S2VID_EDITION === "selfhosted";
|
||
|
|
}
|
||
|
|
|
||
|
|
export function hasProFeatures(plan: Plan): boolean {
|
||
|
|
return isSelfHostedEdition() || plan === "PREMIUM";
|
||
|
|
}
|