From 804b76d3a2b89d0a4cad3e660b003799d20cb29a Mon Sep 17 00:00:00 2001 From: Victor Gerbrands Date: Mon, 8 May 2023 14:47:41 +0200 Subject: [PATCH] refactor: remove more shopify references --- README.md | 2 +- lib/constants.tsx | 1 - next.config.js | 5 ----- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 722ecc50f..a6abf2a69 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Learn more about [Medusa’s architecture](https://docs.medusajs.com/development 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 Shopify store. +> Note: You should not commit your `.env` file or it will expose secrets. 1. Install Vercel CLI: `npm i -g vercel` 2. Link local instance with Vercel and GitHub accounts (creates `.vercel` directory): `vercel link` diff --git a/lib/constants.tsx b/lib/constants.tsx index 9038127e3..49e059002 100644 --- a/lib/constants.tsx +++ b/lib/constants.tsx @@ -22,4 +22,3 @@ export const sorting: SortFilterItem[] = [ export const HIDDEN_PRODUCT_TAG = 'nextjs-frontend-hidden'; export const DEFAULT_OPTION = 'Default Title'; -export const SHOPIFY_GRAPHQL_API_ENDPOINT = '/api/2023-01/graphql.json'; diff --git a/next.config.js b/next.config.js index 3c0769dd7..6716de80b 100644 --- a/next.config.js +++ b/next.config.js @@ -10,11 +10,6 @@ module.exports = { images: { formats: ['image/avif', 'image/webp'], remotePatterns: [ - { - protocol: 'https', - hostname: 'cdn.shopify.com', - pathname: '/s/files/**' - }, { protocol: 'https', hostname: 'medusa-public-images.s3.eu-west-1.amazonaws.com',