import { NextResponse } from 'next/server';

import { IS_FULL_SYSTEM_BUILD } from './buildVariant';

export function isAdminApiEnabled(): boolean {
  return IS_FULL_SYSTEM_BUILD;
}

export function adminApiDisabledResponse() {
  return NextResponse.json(
    { error: 'Admin API is disabled in the frontend-only build' },
    { status: 503 }
  );
}
