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:
@@ -11,7 +11,7 @@ async function requireApiKeyAccess() {
|
|||||||
if (!hasProFeatures(user.plan)) {
|
if (!hasProFeatures(user.plan)) {
|
||||||
return {
|
return {
|
||||||
error: NextResponse.json(
|
error: NextResponse.json(
|
||||||
{ error: "API keys are available on the Pro plan only" },
|
{ error: "API key access is not available" },
|
||||||
{ status: 403 },
|
{ status: 403 },
|
||||||
),
|
),
|
||||||
user: null,
|
user: null,
|
||||||
|
|||||||
+1
-1
@@ -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.
|
* Self-hosted / OSS edition. Prefer S2VID_EDITION; S2YT_EDITION kept for older compose files.
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { Plan } from "@prisma/client";
|
import { Plan } from "@prisma/client";
|
||||||
import { getResolution, RESOLUTIONS } from "./constants";
|
import { getResolution, RESOLUTIONS } from "./constants";
|
||||||
import { isSelfHostedEdition } from "./edition";
|
import { isSelfHostedEdition } from "./edition";
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { Plan } from "@prisma/client";
|
import { Plan } from "@prisma/client";
|
||||||
import { prisma } from "./db";
|
import { prisma } from "./db";
|
||||||
import { getNextMonthlyQuotaReset, getPlanLimits } from "./plans";
|
import { getNextMonthlyQuotaReset, getPlanLimits } from "./plans";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user