diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index b1c15a1..09213f6 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -1,5 +1,11 @@ import './instrument'; +// BigInt cannot be serialized by JSON.stringify by default. +// Polyfill toJSON so Express/NestJS can serialize Prisma BigInt fields. +(BigInt.prototype as any).toJSON = function () { + return this.toString(); +}; + import { RequestMethod, ValidationPipe } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; diff --git a/apps/web/app/[locale]/(public)/pricing/page.tsx b/apps/web/app/[locale]/(public)/pricing/page.tsx index b59fd3d..841e70a 100644 --- a/apps/web/app/[locale]/(public)/pricing/page.tsx +++ b/apps/web/app/[locale]/(public)/pricing/page.tsx @@ -525,7 +525,7 @@ export default function PricingPage() { className={cn( 'px-4 py-3 text-center text-sm font-semibold', plan.tier === 'AGENT_PRO' && 'bg-primary/5', - isAuthenticated && plan.tier === currentTier && 'bg-green-50', + isAuthenticated && plan.tier === currentTier && 'bg-green-50 dark:bg-green-950/40', )} > {t(`tiers.${plan.tier}`)} @@ -552,7 +552,7 @@ export default function PricingPage() { className={cn( 'px-4 py-3 text-center text-sm', plan.tier === 'AGENT_PRO' && 'bg-primary/5', - isAuthenticated && plan.tier === currentTier && 'bg-green-50', + isAuthenticated && plan.tier === currentTier && 'bg-green-50 dark:bg-green-950/40', )} > {typeof val === 'boolean' ? (