diff --git a/app/[locale]/bar/page.tsx b/app/[locale]/bar/page.tsx index c7d8f3f97..98fe0ea39 100644 --- a/app/[locale]/bar/page.tsx +++ b/app/[locale]/bar/page.tsx @@ -8,6 +8,8 @@ import { Suspense } from 'react'; import SagyobarDetail from './sagyobar-detail'; export const runtime = 'edge'; +export const revalidate = 43200; // 12 hours in seconds + const { SITE_NAME } = process.env; export const metadata = { diff --git a/app/[locale]/company/page.tsx b/app/[locale]/company/page.tsx index 9393818d6..ae9820f10 100644 --- a/app/[locale]/company/page.tsx +++ b/app/[locale]/company/page.tsx @@ -8,6 +8,8 @@ import { Suspense } from 'react'; import CompanyDetail from './company-detail'; export const runtime = 'edge'; +export const revalidate = 43200; // 12 hours in seconds + const { SITE_NAME } = process.env; export const metadata = { diff --git a/app/[locale]/concept/page.tsx b/app/[locale]/concept/page.tsx index 9ccc9024a..e23066ec4 100644 --- a/app/[locale]/concept/page.tsx +++ b/app/[locale]/concept/page.tsx @@ -8,6 +8,8 @@ import { Suspense } from 'react'; import ConceptDetail from './concept-detail'; export const runtime = 'edge'; +export const revalidate = 43200; // 12 hours in seconds + const { SITE_NAME } = process.env; export const metadata = { diff --git a/app/[locale]/disclosures/page.tsx b/app/[locale]/disclosures/page.tsx index 4ce95e338..5e4d03468 100644 --- a/app/[locale]/disclosures/page.tsx +++ b/app/[locale]/disclosures/page.tsx @@ -8,6 +8,8 @@ import { Suspense } from 'react'; import Disclosures from './disclosures'; export const runtime = 'edge'; +export const revalidate = 43200; // 12 hours in seconds + const { SITE_NAME } = process.env; export const metadata = { diff --git a/app/[locale]/privacy/page.tsx b/app/[locale]/privacy/page.tsx index b6d89acfd..a45c66492 100644 --- a/app/[locale]/privacy/page.tsx +++ b/app/[locale]/privacy/page.tsx @@ -8,6 +8,8 @@ import { Suspense } from 'react'; import PrivacyPolicy from './privacy-policy'; export const runtime = 'edge'; +export const revalidate = 43200; // 12 hours in seconds + const { SITE_NAME } = process.env; export const metadata = { diff --git a/app/[locale]/product/[handle]/page.tsx b/app/[locale]/product/[handle]/page.tsx index 6c55146f9..2b8a97e2c 100644 --- a/app/[locale]/product/[handle]/page.tsx +++ b/app/[locale]/product/[handle]/page.tsx @@ -14,7 +14,9 @@ import { getProduct, getProductRecommendations } from 'lib/shopify'; import { Image as MediaImage, Product } from 'lib/shopify/types'; import Image from 'next/image'; import Link from 'next/link'; + export const runtime = 'edge'; +export const revalidate = 43200; // 12 hours in seconds export async function generateMetadata({ params diff --git a/app/[locale]/products/page.tsx b/app/[locale]/products/page.tsx index 7ce8384aa..906f31793 100644 --- a/app/[locale]/products/page.tsx +++ b/app/[locale]/products/page.tsx @@ -8,6 +8,8 @@ import { cookies } from 'next/headers'; import { Suspense } from 'react'; export const runtime = 'edge'; +export const revalidate = 43200; // 12 hours in seconds + const { SITE_NAME } = process.env; export const metadata = { diff --git a/app/[locale]/[page]/layout.tsx b/deprecated/[page]/layout.tsx similarity index 100% rename from app/[locale]/[page]/layout.tsx rename to deprecated/[page]/layout.tsx diff --git a/app/[locale]/[page]/opengraph-image.tsx b/deprecated/[page]/opengraph-image.tsx similarity index 100% rename from app/[locale]/[page]/opengraph-image.tsx rename to deprecated/[page]/opengraph-image.tsx diff --git a/app/[locale]/[page]/page.tsx b/deprecated/[page]/page.tsx similarity index 97% rename from app/[locale]/[page]/page.tsx rename to deprecated/[page]/page.tsx index 8d3820714..ae5238781 100644 --- a/app/[locale]/[page]/page.tsx +++ b/deprecated/[page]/page.tsx @@ -5,7 +5,7 @@ import Prose from 'components/prose'; import { getPage } from 'lib/shopify'; import { notFound } from 'next/navigation'; -export const runtime = 'edge'; +// export const runtime = 'edge'; export const revalidate = 43200; // 12 hours in seconds diff --git a/app/[locale]/search/[collection]/opengraph-image.tsx b/deprecated/search/[collection]/opengraph-image.tsx similarity index 100% rename from app/[locale]/search/[collection]/opengraph-image.tsx rename to deprecated/search/[collection]/opengraph-image.tsx diff --git a/app/[locale]/search/[collection]/page.tsx b/deprecated/search/[collection]/page.tsx similarity index 100% rename from app/[locale]/search/[collection]/page.tsx rename to deprecated/search/[collection]/page.tsx diff --git a/app/[locale]/search/layout.tsx b/deprecated/search/layout.tsx similarity index 100% rename from app/[locale]/search/layout.tsx rename to deprecated/search/layout.tsx diff --git a/app/[locale]/search/loading.tsx b/deprecated/search/loading.tsx similarity index 100% rename from app/[locale]/search/loading.tsx rename to deprecated/search/loading.tsx diff --git a/app/[locale]/search/page.tsx b/deprecated/search/page.tsx similarity index 100% rename from app/[locale]/search/page.tsx rename to deprecated/search/page.tsx diff --git a/app/[locale]/sitemap.ts b/deprecated/sitemap.ts similarity index 100% rename from app/[locale]/sitemap.ts rename to deprecated/sitemap.ts