From e8646abf6f16655015dd33ec8e7c54faa743219a Mon Sep 17 00:00:00 2001 From: Prem <128772487+410Prem@users.noreply.github.com> Date: Thu, 13 Feb 2025 20:24:56 +0530 Subject: [PATCH] Update site name to JUST BUY --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/vercel/commerce?shareId=XXXX-XXXX-XXXX-XXXX). --- README.md | 21 ++++++++++++++++++++- app/layout.tsx | 2 +- components/layout/footer.tsx | 4 ++-- components/layout/navbar/index.tsx | 2 +- 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e216224c5..e690b3763 100644 --- a/README.md +++ b/README.md @@ -72,4 +72,23 @@ Your app should now be running on [localhost:3000](http://localhost:3000/). ## Vercel, Next.js Commerce, and Shopify Integration Guide -You can use this comprehensive [integration guide](https://vercel.com/docs/integrations/ecommerce/shopify) with step-by-step instructions on how to configure Shopify as a headless CMS using Next.js Commerce as your headless Shopify storefront on Vercel. +You can use this comprehensive [integration guide](://vercel.com/docs/integrations/ecommerce/shopify) with step-by-step instructions on how to configure Shopify as a headless CMS using Next.js Commerce as your headless Shopify storefront on Vercel. + +## Environment Variables + +The following environment variables are required to run the project: + +- `COMPANY_NAME`: The name of your company. +- `SITE_NAME`: The name of your site. +- `SHOPIFY_REVALIDATION_SECRET`: Your Shopify revalidation secret. +- `SHOPIFY_STOREFRONT_ACCESS_TOKEN`: Your Shopify storefront access token. +- `SHOPIFY_STORE_DOMAIN`: Your Shopify store domain. + +## Deploying to Vercel + +To deploy the project to Vercel, follow these steps: + +1. Install Vercel CLI: `npm i -g vercel` +2. Link local instance with Vercel and GitHub accounts (creates `.vercel` directory): `vercel link` +3. Download your environment variables: `vercel env pull` +4. Deploy the project: `vercel --prod` diff --git a/app/layout.tsx b/app/layout.tsx index 5e3355ce9..ceb309766 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -8,7 +8,7 @@ import { Toaster } from 'sonner'; import './globals.css'; import { baseUrl } from 'lib/utils'; -const { SITE_NAME } = process.env; +const SITE_NAME = "JUST BUY"; export const metadata = { metadataBase: new URL(baseUrl), diff --git a/components/layout/footer.tsx b/components/layout/footer.tsx index 57448a43c..368c0d58d 100644 --- a/components/layout/footer.tsx +++ b/components/layout/footer.tsx @@ -12,7 +12,7 @@ export default async function Footer() { const copyrightDate = 2023 + (currentYear > 2023 ? `-${currentYear}` : ''); const skeleton = 'w-full h-6 animate-pulse rounded-sm bg-neutral-200 dark:bg-neutral-700'; const menu = await getMenu('next-js-frontend-footer-menu'); - const copyrightName = COMPANY_NAME || SITE_NAME || ''; + const copyrightName = COMPANY_NAME || "JUST BUY" || ''; return (