From db644ac204c8c547d6536c3f7846a713c7245c79 Mon Sep 17 00:00:00 2001 From: Songs2YT Date: Sat, 25 Jul 2026 05:28:12 +0200 Subject: [PATCH] Remove UTF-8 BOM from core libs and soften API key access error for OSS. Co-authored-by: Cursor --- app/api/account/api-key/route.ts | 2 +- lib/edition.ts | 2 +- lib/plans.ts | 2 +- lib/quota.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/api/account/api-key/route.ts b/app/api/account/api-key/route.ts index 0cc8388..36ca6a8 100644 --- a/app/api/account/api-key/route.ts +++ b/app/api/account/api-key/route.ts @@ -11,7 +11,7 @@ async function requireApiKeyAccess() { if (!hasProFeatures(user.plan)) { return { error: NextResponse.json( - { error: "API keys are available on the Pro plan only" }, + { error: "API key access is not available" }, { status: 403 }, ), user: null, diff --git a/lib/edition.ts b/lib/edition.ts index d7d2e5e..056c945 100644 --- a/lib/edition.ts +++ b/lib/edition.ts @@ -1,4 +1,4 @@ -import { Plan } from "@prisma/client"; +import { Plan } from "@prisma/client"; /** * Self-hosted / OSS edition. Prefer S2VID_EDITION; S2YT_EDITION kept for older compose files. diff --git a/lib/plans.ts b/lib/plans.ts index afe8657..3bd09c3 100644 --- a/lib/plans.ts +++ b/lib/plans.ts @@ -1,4 +1,4 @@ -import { Plan } from "@prisma/client"; +import { Plan } from "@prisma/client"; import { getResolution, RESOLUTIONS } from "./constants"; import { isSelfHostedEdition } from "./edition"; diff --git a/lib/quota.ts b/lib/quota.ts index 61695e1..924e7e2 100644 --- a/lib/quota.ts +++ b/lib/quota.ts @@ -1,4 +1,4 @@ -import { Plan } from "@prisma/client"; +import { Plan } from "@prisma/client"; import { prisma } from "./db"; import { getNextMonthlyQuotaReset, getPlanLimits } from "./plans";