Remove UTF-8 BOM from core libs and soften API key access error for OSS.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Songs2YT
2026-07-25 05:28:12 +02:00
co-authored by Cursor
parent 0b1a88b070
commit db644ac204
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -1,4 +1,4 @@
import { Plan } from "@prisma/client";
import { Plan } from "@prisma/client";
import { getResolution, RESOLUTIONS } from "./constants";
import { isSelfHostedEdition } from "./edition";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Plan } from "@prisma/client";
import { Plan } from "@prisma/client";
import { prisma } from "./db";
import { getNextMonthlyQuotaReset, getPlanLimits } from "./plans";