From c79846a1b12f927e1f98f45fdd10fe32d69eec3a Mon Sep 17 00:00:00 2001 From: Alejandro Chen Date: Sat, 10 May 2025 21:33:54 -0300 Subject: [PATCH] fixes --- apps/website/next.config.ts | 6 +++--- .../(main)/subscription/_components/PaymentForm.tsx | 2 +- apps/website/src/app/_components/top-nav.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/website/next.config.ts b/apps/website/next.config.ts index 85fdbc9..b55c961 100644 --- a/apps/website/next.config.ts +++ b/apps/website/next.config.ts @@ -44,13 +44,13 @@ const config: NextConfig = { pageExtensions: ["md", "mdx", "tsx", "ts", "jsx", "js"], rewrites: async () => { return { - // Disallow access to the source nap files. - beforeFiles: [ + // Disallow access to the source map files in production. + beforeFiles: env.NODE_ENV === "production" ? [ { source: "/:path*.map", destination: "/404", }, - ], + ] : undefined, afterFiles: [ { source: "/ingest/static/:path*", diff --git a/apps/website/src/app/[locale]/(main)/subscription/_components/PaymentForm.tsx b/apps/website/src/app/[locale]/(main)/subscription/_components/PaymentForm.tsx index 4bf04ed..20f93a2 100644 --- a/apps/website/src/app/[locale]/(main)/subscription/_components/PaymentForm.tsx +++ b/apps/website/src/app/[locale]/(main)/subscription/_components/PaymentForm.tsx @@ -28,7 +28,7 @@ export default function PaymentForm({ return () => { // @ts-expect-error ignoring type error // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call - window?.cardPaymentBrickController?.unmount(); + window?.paymentBrickController?.unmount(); }; }, []); const onSubmit = async (formData: IPaymentFormData) => { diff --git a/apps/website/src/app/_components/top-nav.tsx b/apps/website/src/app/_components/top-nav.tsx index 128665f..b7c1d71 100644 --- a/apps/website/src/app/_components/top-nav.tsx +++ b/apps/website/src/app/_components/top-nav.tsx @@ -24,7 +24,7 @@ export async function TopNav() { async function SubscribeButton() { const t = await getTranslations("App"); return ( -