diff --git a/.env.example b/.env.example index 9ff0463db..292128a6a 100644 --- a/.env.example +++ b/.env.example @@ -1,7 +1,7 @@ -COMPANY_NAME="Vercel Inc." -TWITTER_CREATOR="@vercel" -TWITTER_SITE="https://nextjs.org/commerce" -SITE_NAME="Next.js Commerce" -SHOPIFY_REVALIDATION_SECRET="" -SHOPIFY_STOREFRONT_ACCESS_TOKEN="" -SHOPIFY_STORE_DOMAIN="[your-shopify-store-subdomain].myshopify.com" +# API specifics +NEXT_PUBLIC_FW_API_URL="https://api.staging.fourthwall.com" + +# Site specifics +NEXT_PUBLIC_FW_COLLECTION="launch" +NEXT_PUBLIC_FW_PUBLIC_TOKEN="" +NEXT_PUBLIC_FW_CHECKOUT="https://jieren-shop.staging.fourthwall.com" diff --git a/app/[page]/layout.tsx b/app/[page]/layout.tsx deleted file mode 100644 index 50614b5b1..000000000 --- a/app/[page]/layout.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import Footer from 'components/layout/footer'; - -export default function Layout({ children }: { children: React.ReactNode }) { - return ( - <> -
- {`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/search/[collection]/opengraph-image.tsx b/app/search/[collection]/opengraph-image.tsx deleted file mode 100644 index 9eb9c47f7..000000000 --- a/app/search/[collection]/opengraph-image.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import OpengraphImage from 'components/opengraph-image'; -import { getCollection } from 'lib/shopify'; - -export const runtime = 'edge'; - -export default async function Image({ params }: { params: { collection: string } }) { - const collection = await getCollection(params.collection); - const title = collection?.seo?.title || collection?.title; - - return await OpengraphImage({ title }); -} diff --git a/app/search/[collection]/page.tsx b/app/search/[collection]/page.tsx deleted file mode 100644 index c0fc6816f..000000000 --- a/app/search/[collection]/page.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { getCollection } from 'lib/shopify'; -import { Metadata } from 'next'; -import { notFound } from 'next/navigation'; - -import Grid from 'components/grid'; -import ProductGridItems from 'components/layout/product-grid-items'; -import { defaultSort, sorting } from 'lib/constants'; -import { getCollectionProducts } from 'lib/fourthwall'; - -export async function generateMetadata({ - params -}: { - params: { collection: string }; -}): Promise{`No products found in this collection`}
- ) : ( -- {products.length === 0 - ? 'There are no products that match ' - : `Showing ${products.length} ${resultsText} for `} - "{searchValue}" -
- ) : null} - {products.length > 0 ? ( -