From 2f328e419fd38c5605385f517dd417e9f0487d09 Mon Sep 17 00:00:00 2001 From: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> Date: Fri, 18 Oct 2024 09:58:19 -0700 Subject: [PATCH 1/3] remove cart --- src/app/layout.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 779a59a..dcdc3d4 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -4,8 +4,6 @@ import "./globals.css"; import Link from "next/link"; import { SearchDropdownComponent } from "@/components/search-dropdown"; import { MenuIcon } from "lucide-react"; -import { Suspense } from "react"; -import { Cart } from "@/components/cart"; const helvetica = localFont({ src: "./fonts/HelveticaNeueLTPro-Md.woff", @@ -66,9 +64,6 @@ export default async function RootLayout({ > ORDER - - - Date: Fri, 18 Oct 2024 10:01:30 -0700 Subject: [PATCH 2/3] remove loadings --- .../[category]/[subcategory]/[product]/loading.tsx | 10 ---------- .../products/[category]/[subcategory]/loading.tsx | 10 ---------- .../(category-sidebar)/products/[category]/loading.tsx | 10 ---------- 3 files changed, 30 deletions(-) delete mode 100644 src/app/(category-sidebar)/products/[category]/[subcategory]/[product]/loading.tsx delete mode 100644 src/app/(category-sidebar)/products/[category]/[subcategory]/loading.tsx delete mode 100644 src/app/(category-sidebar)/products/[category]/loading.tsx diff --git a/src/app/(category-sidebar)/products/[category]/[subcategory]/[product]/loading.tsx b/src/app/(category-sidebar)/products/[category]/[subcategory]/[product]/loading.tsx deleted file mode 100644 index 0af39dd..0000000 --- a/src/app/(category-sidebar)/products/[category]/[subcategory]/[product]/loading.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { LoadingPage } from "@/components/loading"; - -/** - * v0 by Vercel. - * @see https://v0.dev/t/Z1bVbMZYEOI - * Documentation: https://v0.dev/docs#integrating-generated-code-into-your-nextjs-app - */ -export default function Page() { - return ; -} diff --git a/src/app/(category-sidebar)/products/[category]/[subcategory]/loading.tsx b/src/app/(category-sidebar)/products/[category]/[subcategory]/loading.tsx deleted file mode 100644 index 0af39dd..0000000 --- a/src/app/(category-sidebar)/products/[category]/[subcategory]/loading.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { LoadingPage } from "@/components/loading"; - -/** - * v0 by Vercel. - * @see https://v0.dev/t/Z1bVbMZYEOI - * Documentation: https://v0.dev/docs#integrating-generated-code-into-your-nextjs-app - */ -export default function Page() { - return ; -} diff --git a/src/app/(category-sidebar)/products/[category]/loading.tsx b/src/app/(category-sidebar)/products/[category]/loading.tsx deleted file mode 100644 index 0af39dd..0000000 --- a/src/app/(category-sidebar)/products/[category]/loading.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { LoadingPage } from "@/components/loading"; - -/** - * v0 by Vercel. - * @see https://v0.dev/t/Z1bVbMZYEOI - * Documentation: https://v0.dev/docs#integrating-generated-code-into-your-nextjs-app - */ -export default function Page() { - return ; -} From d0d274b57d34608cb6b0f5eb012a21716f8f08a7 Mon Sep 17 00:00:00 2001 From: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:34:05 -0700 Subject: [PATCH 3/3] force static --- src/app/layout.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index dcdc3d4..95569ac 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -26,6 +26,7 @@ export const metadata: Metadata = { // revalidate the data at most every day export const revalidate = 86400; +export const dynamic = "force-static"; export default async function RootLayout({ children,