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)) {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user