From 8813f288e874fcedef3262d1160834cfb5ee9112 Mon Sep 17 00:00:00 2001 From: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> Date: Fri, 18 Oct 2024 08:36:39 -0700 Subject: [PATCH 1/4] enable ppr --- next.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.mjs b/next.config.mjs index 9a0249f..e481729 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { experimental: { - ppr: false, + ppr: true, }, typescript: { ignoreBuildErrors: true, From 523b2d918a8c7d537c8054c110f88b928830bfa4 Mon Sep 17 00:00:00 2001 From: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> Date: Fri, 18 Oct 2024 08:44:55 -0700 Subject: [PATCH 2/4] try out encoding uris --- src/app/(category-sidebar)/layout.tsx | 2 +- src/app/(category-sidebar)/products/[category]/page.tsx | 2 +- src/app/order/page.tsx | 2 +- src/components/ui/product-card.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/(category-sidebar)/layout.tsx b/src/app/(category-sidebar)/layout.tsx index 3c211c6..b92c930 100644 --- a/src/app/(category-sidebar)/layout.tsx +++ b/src/app/(category-sidebar)/layout.tsx @@ -18,7 +18,7 @@ export default async function Layout({ {allCategories.map((category) => (
  • {category.name} diff --git a/src/app/(category-sidebar)/products/[category]/page.tsx b/src/app/(category-sidebar)/products/[category]/page.tsx index cee1765..93ad8ed 100644 --- a/src/app/(category-sidebar)/products/[category]/page.tsx +++ b/src/app/(category-sidebar)/products/[category]/page.tsx @@ -64,7 +64,7 @@ export default async function Page(props: {
    diff --git a/src/components/ui/product-card.tsx b/src/components/ui/product-card.tsx index 1316771..4751f1f 100644 --- a/src/components/ui/product-card.tsx +++ b/src/components/ui/product-card.tsx @@ -11,7 +11,7 @@ export function ProductLink(props: { return (
    Date: Fri, 18 Oct 2024 08:47:14 -0700 Subject: [PATCH 3/4] Revert "try out encoding uris" This reverts commit 523b2d918a8c7d537c8054c110f88b928830bfa4. --- src/app/(category-sidebar)/layout.tsx | 2 +- src/app/(category-sidebar)/products/[category]/page.tsx | 2 +- src/app/order/page.tsx | 2 +- src/components/ui/product-card.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/(category-sidebar)/layout.tsx b/src/app/(category-sidebar)/layout.tsx index b92c930..3c211c6 100644 --- a/src/app/(category-sidebar)/layout.tsx +++ b/src/app/(category-sidebar)/layout.tsx @@ -18,7 +18,7 @@ export default async function Layout({ {allCategories.map((category) => (
  • {category.name} diff --git a/src/app/(category-sidebar)/products/[category]/page.tsx b/src/app/(category-sidebar)/products/[category]/page.tsx index 93ad8ed..cee1765 100644 --- a/src/app/(category-sidebar)/products/[category]/page.tsx +++ b/src/app/(category-sidebar)/products/[category]/page.tsx @@ -64,7 +64,7 @@ export default async function Page(props: {
    diff --git a/src/components/ui/product-card.tsx b/src/components/ui/product-card.tsx index 4751f1f..1316771 100644 --- a/src/components/ui/product-card.tsx +++ b/src/components/ui/product-card.tsx @@ -11,7 +11,7 @@ export function ProductLink(props: { return (
    Date: Fri, 18 Oct 2024 10:19:53 -0700 Subject: [PATCH 4/4] remove loading.tsx --- .../[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 ; -}