mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
add revalidation timeframes
This commit is contained in:
@@ -8,6 +8,8 @@ import { cookies } from 'next/headers';
|
||||
import { ReactNode, Suspense } from 'react';
|
||||
|
||||
export const runtime = 'edge';
|
||||
export const revalidate = 300; // 5 minutes in seconds
|
||||
|
||||
const { SITE_NAME } = process.env;
|
||||
|
||||
export const metadata = {
|
||||
|
@@ -7,7 +7,9 @@ import { BLOG_HANDLE, HIDDEN_ARTICLE_TAG } from 'lib/constants';
|
||||
import { getBlogArticle } from 'lib/shopify';
|
||||
import { BlogArticle } from 'lib/shopify/types';
|
||||
import Image from 'next/image';
|
||||
|
||||
export const runtime = 'edge';
|
||||
export const revalidate = 300; // 5 minutes in seconds
|
||||
|
||||
export async function generateMetadata({
|
||||
params
|
||||
|
Reference in New Issue
Block a user