diff --git a/app/[page]/layout.tsx b/app/[page]/layout.tsx index 50614b5b1..d76dedda1 100644 --- a/app/[page]/layout.tsx +++ b/app/[page]/layout.tsx @@ -1,4 +1,4 @@ -import Footer from 'components/layout/footer'; +import Footer from "components/layout/footer"; export default function Layout({ children }: { children: React.ReactNode }) { return ( diff --git a/app/[page]/opengraph-image.tsx b/app/[page]/opengraph-image.tsx index 031e73fc8..5f11d802b 100644 --- a/app/[page]/opengraph-image.tsx +++ b/app/[page]/opengraph-image.tsx @@ -1,5 +1,5 @@ -import OpengraphImage from 'components/opengraph-image'; -import { getPage } from 'lib/shopify'; +import OpengraphImage from "components/opengraph-image"; +import { getPage } from "lib/shopify"; export default async function Image({ params }: { params: { page: string } }) { const page = await getPage(params.page); diff --git a/app/[page]/page.tsx b/app/[page]/page.tsx index aa0c15603..1740bede3 100644 --- a/app/[page]/page.tsx +++ b/app/[page]/page.tsx @@ -1,8 +1,8 @@ -import type { Metadata } from 'next'; +import type { Metadata } from "next"; -import Prose from 'components/prose'; -import { getPage } from 'lib/shopify'; -import { notFound } from 'next/navigation'; +import Prose from "components/prose"; +import { getPage } from "lib/shopify"; +import { notFound } from "next/navigation"; export async function generateMetadata(props: { params: Promise<{ page: string }>; @@ -18,12 +18,14 @@ export async function generateMetadata(props: { openGraph: { publishedTime: page.createdAt, modifiedTime: page.updatedAt, - type: 'article' - } + type: "article", + }, }; } -export default async function Page(props: { params: Promise<{ page: string }> }) { +export default async function Page(props: { + params: Promise<{ page: string }>; +}) { const params = await props.params; const page = await getPage(params.page); @@ -34,11 +36,14 @@ export default async function Page(props: { params: Promise<{ page: string }> })
- {`This document was last updated on ${new Intl.DateTimeFormat(undefined, { - year: 'numeric', - month: 'long', - day: 'numeric' - }).format(new Date(page.updatedAt))}.`} + {`This document was last updated on ${new Intl.DateTimeFormat( + undefined, + { + year: "numeric", + month: "long", + day: "numeric", + }, + ).format(new Date(page.updatedAt))}.`}
> ); diff --git a/app/api/revalidate/route.ts b/app/api/revalidate/route.ts index 4ecc0b45d..e146fa0b5 100644 --- a/app/api/revalidate/route.ts +++ b/app/api/revalidate/route.ts @@ -1,5 +1,5 @@ -import { revalidate } from 'lib/shopify'; -import { NextRequest, NextResponse } from 'next/server'; +import { revalidate } from "lib/shopify"; +import { NextRequest, NextResponse } from "next/server"; export async function POST(req: NextRequest): Promise- There was an issue with our storefront. This could be a temporary issue, please try your - action again. + There was an issue with our storefront. This could be a temporary issue, + please try your action again.