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 ( -