Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/(auth)/change-password/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ export default async function ChangePassword({ searchParams }: Props) {

return null;
}

export const runtime = 'edge';
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@ export default async function Reset() {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/(auth)/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ export default async function Register() {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/(faceted)/brand/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,3 @@ export default async function Brand(props: Props) {
</div>
);
}

export const runtime = 'edge';
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,3 @@ export default async function Category(props: Props) {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/(faceted)/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,3 @@ export default async function Search(props: Props) {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/account/addresses/add/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,3 @@ export default async function AddPage() {
</div>
);
}

export const runtime = 'edge';
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,3 @@ export default async function Edit({ params }: Props) {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/account/addresses/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,3 @@ export default async function Addresses({ searchParams }: Props) {
</>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/account/order/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,3 @@ export default async function Order(props: Props) {

return <OrderDetails data={data} />;
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/account/orders/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ export default async function Orders({ searchParams }: Props) {
</>
);
}

export const runtime = 'edge';
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ export default async function ChangePassword({ params }: Props) {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/account/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ export default async function Settings() {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/blog/[blogId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ export default async function Blog({ params }: Props) {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,3 @@ export default async function Blog(props: Props) {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/blog/tag/[tagId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ export default async function Tag(props: Props) {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/cart/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,3 @@ export default async function Cart() {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/compare/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,5 +372,3 @@ export default async function Compare(props: Props) {
</>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,3 @@ export default async function Home({ params }: Props) {
</>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/product/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,3 @@ export default async function Product(props: Props) {
</>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/webpages/contact/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ export default async function WebPage({ params }: Props) {
</>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/(default)/webpages/normal/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,3 @@ export default async function WebPage({ params }: Props) {
</div>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/maintenance/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,3 @@ export default async function Maintenance({ params }: Props) {
</Container>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/[locale]/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,3 @@ export default async function NotFound() {
</>
);
}

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/admin/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ export const GET = () => {
locale: defaultLocale,
});
};

export const runtime = 'edge';
1 change: 0 additions & 1 deletion core/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { handlers } from '~/auth';

export const { GET, POST } = handlers;
export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/api/cart-quantity/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ export const GET = async (request: NextRequest) => {

return NextResponse.json({ count: 0 });
};

export const runtime = 'edge';
1 change: 0 additions & 1 deletion core/app/login/token/[token]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ export async function GET(request: Request, { params }: TokenParams) {
}
}

export const runtime = 'edge';
export const dynamic = 'force-dynamic';
2 changes: 0 additions & 2 deletions core/app/sitemap.xml/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ export const GET = async () => {
},
});
};

export const runtime = 'edge';
2 changes: 0 additions & 2 deletions core/app/xmlsitemap.php/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ import { defaultLocale, permanentRedirect } from '~/i18n/routing';
export const GET = () => {
permanentRedirect({ href: '/sitemap.xml', locale: defaultLocale });
};

export const runtime = 'edge';
8 changes: 4 additions & 4 deletions core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@bigcommerce/catalyst-core",
"description": "BigCommerce Catalyst is a Next.js starter kit for building headless BigCommerce storefronts.",
"version": "0.24.2",
"version": "0.24.3",
"private": true,
"scripts": {
"dev": "npm run generate && next dev",
Expand Down Expand Up @@ -44,12 +44,12 @@
"lodash.debounce": "^4.0.8",
"lru-cache": "^11.0.2",
"lucide-react": "^0.468.0",
"next": "15.2.3",
"next": "15.5.8",
"next-auth": "5.0.0-beta.25",
"next-intl": "^3.26.1",
"react": "^19.0.0",
"react": "^19.1.3",
"react-day-picker": "^8.10.0",
"react-dom": "^19.0.0",
"react-dom": "^19.1.3",
"react-google-recaptcha": "^3.1.0",
"react-hook-form": "^7.54.1",
"react-hot-toast": "^2.4.1",
Expand Down
11 changes: 3 additions & 8 deletions integrations/makeswift/integration.patch
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ index 71d40507..2d20fa4f 100644
+ <MakeswiftProvider>
+ <MakeswiftPage snapshot={snapshot} />
+ </MakeswiftProvider>
+ );
}
+
+export const runtime = 'nodejs';
+ );
}
diff --git a/core/app/[locale]/layout.tsx b/core/app/[locale]/layout.tsx
index faf15d53..a66fb02b 100644
--- a/core/app/[locale]/layout.tsx
Expand Down Expand Up @@ -174,8 +172,6 @@ index 00000000..bea1b56f
+
+ return NextResponse.json(removeEdgesAndNodes(data.site.featuredProducts));
+};
+
+export const runtime = 'edge';
diff --git a/core/components/ui/accordions/accordion.makeswift.tsx b/core/components/ui/accordions/accordion.makeswift.tsx
new file mode 100644
index 00000000..a70a94e8
Expand Down Expand Up @@ -490,10 +486,9 @@ new file mode 100644
index 00000000..e988b5cf
--- /dev/null
+++ b/core/lib/makeswift/runtime.ts
@@ -0,0 +1,3 @@
@@ -0,0 +1,2 @@
+import { ReactRuntime } from '@makeswift/runtime/react';
+
+export const runtime = new ReactRuntime();
diff --git a/core/middleware.ts b/core/middleware.ts
index c9928bdd..1724c1ea 100644
--- a/core/middleware.ts
Expand Down
Loading