diff --git a/README.md b/README.md index 4b28171..1e1e421 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Next.js Commerce Bagisto +> Note: Looking for Bagisto Next.js Commerce v1? View the [code](https://github.com/bagisto/nextjs-commerce/tree/v1), [demo](https://bagisto-commerce.vercel.app/), and [release notes](https://github.com/bagisto/nextjs-commerce/releases/tag/v1) + A Next.js 14 and App Router-ready ecommerce template featuring: - Next.js App Router @@ -14,20 +16,22 @@ A Next.js 14 and App Router-ready ecommerce template featuring: - Checkout and payments with Bagisto - Automatic light/dark mode based on system settings +Demo live at: [Bagisto Store](https://v2-bagisto-demo.vercel.app/) +
## Configuration ### Setup Bagisto Store -- For `BAGISTO_CURRENCY_CODE` and `BAGISTO_STORE_ENDPOINT`, you need to install the [Bagisto](https://github.com/bagisto/bagisto). -- Then, you need to install the [Bagisto Headless Extension](https://github.com/bagisto/headless-ecommerce) in the Bagisto. +- For `BAGISTO_CURRENCY_CODE` and `BAGISTO_STORE_ENDPOINT`, you need to install the [Bagisto](https://github.com/bagisto/bagisto/tree/v2.0.0). +- Then, you need to install the [Bagisto Headless Extension](https://github.com/bagisto/headless-ecommerce/tree/v2.0.1) in the Bagisto. - Now you need to host the full application so that you have store endpoint and if you are in development mode then you can use Ngrok also. - After that you can proceed with setting up Next.js commerce. ## Running locally -You will need to use the environment variables [defined in `.env.example`](.env.example) to run Next.js Commerce. It's recommended you use [Vercel Environment Variables](https://vercel.com/docs/concepts/projects/environment-variables) for this, but a `.env` file is all that is necessary. +You will need to use the environment variables defined in [`.env.example`](.env.example) to run Next.js Commerce. It's recommended you use [Vercel Environment Variables](https://vercel.com/docs/concepts/projects/environment-variables) for this, but a `.env` file is all that is necessary. > Note: You should not commit your `.env` file or it will expose secrets that will allow others to control your Bagisto store. diff --git a/app/(checkout)/checkout/layout.tsx b/app/(checkout)/checkout/layout.tsx index 6963065..39f29a1 100644 --- a/app/(checkout)/checkout/layout.tsx +++ b/app/(checkout)/checkout/layout.tsx @@ -5,10 +5,12 @@ import Loading from 'components/checkout/loading'; import NextBreadcrumb from 'components/checkout/next-breadcrumb'; import FormPlaceHolder from 'components/checkout/place-holder'; import LogoSquare from 'components/logo-square'; +import Link from 'next/link'; import { Suspense } from 'react'; const skeleton = 'mb-3 h-4 w-5/6 animate-pulse rounded'; const activeAndTitles = 'bg-neutral-400 dark:bg-neutral-300'; const items = 'bg-neutral-400 dark:bg-neutral-700'; +const { SITE_NAME } = process.env; export default async function CheckoutLayout({ children }: React.PropsWithChildren) { return (