From 18917b632a823d0d51e6a783e4d5e5a482a50f30 Mon Sep 17 00:00:00 2001 From: MananTank Date: Wed, 10 Dec 2025 18:35:11 +0000 Subject: [PATCH] Fix bridge iframe config (#8529) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR updates references from `/bridge/embed` to `/bridge/widget` in the configuration files, reflecting a change in the iframe page used in the application. ### Detailed summary - Updated `PAYMENT_METHOD_CONFIGURATION` comment in `.env.example` from `/bridge/embed` to `/bridge/widget`. - Changed `source` in `next.config.ts` from `/bridge/embed` to `/bridge/widget`. - Updated `source` path pattern in `next.config.ts` from `/bridge/embed/:path*` to `/bridge/widget/:path*`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * **Documentation** * Updated configuration documentation. * **Chores** * Updated internal routing paths in application configuration. ✏️ Tip: You can customize this high-level summary in your review settings. --- apps/dashboard/.env.example | 2 +- apps/dashboard/next.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/.env.example b/apps/dashboard/.env.example index 332a4d88662..918d54845d4 100644 --- a/apps/dashboard/.env.example +++ b/apps/dashboard/.env.example @@ -67,5 +67,5 @@ STRIPE_SECRET_KEY="" GROWTH_PLAN_SKU="" PAYMENT_METHOD_CONFIGURATION="" -# required for bridge iframe (/bridge/embed) page +# required for bridge iframe (/bridge/widget) page NEXT_PUBLIC_BRIDGE_IFRAME_CLIENT_ID="" \ No newline at end of file diff --git a/apps/dashboard/next.config.ts b/apps/dashboard/next.config.ts index 2940a200b99..80839a2cd74 100644 --- a/apps/dashboard/next.config.ts +++ b/apps/dashboard/next.config.ts @@ -150,7 +150,7 @@ const baseNextConfig: NextConfig = { value: EmbedContentSecurityPolicy.replace(/\s{2,}/g, " ").trim(), }, ], - source: "/bridge/embed", + source: "/bridge/widget", }, { headers: [ @@ -159,7 +159,7 @@ const baseNextConfig: NextConfig = { value: EmbedContentSecurityPolicy.replace(/\s{2,}/g, " ").trim(), }, ], - source: "/bridge/embed/:path*", + source: "/bridge/widget/:path*", }, ]; },