refactor: remove more shopify references

This commit is contained in:
Victor Gerbrands 2023-05-08 14:47:41 +02:00
parent 3fa5b3c7cb
commit 804b76d3a2
3 changed files with 1 additions and 7 deletions

View File

@ -28,7 +28,7 @@ Learn more about [Medusas 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. 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` 1. Install Vercel CLI: `npm i -g vercel`
2. Link local instance with Vercel and GitHub accounts (creates `.vercel` directory): `vercel link` 2. Link local instance with Vercel and GitHub accounts (creates `.vercel` directory): `vercel link`

View File

@ -22,4 +22,3 @@ export const sorting: SortFilterItem[] = [
export const HIDDEN_PRODUCT_TAG = 'nextjs-frontend-hidden'; export const HIDDEN_PRODUCT_TAG = 'nextjs-frontend-hidden';
export const DEFAULT_OPTION = 'Default Title'; export const DEFAULT_OPTION = 'Default Title';
export const SHOPIFY_GRAPHQL_API_ENDPOINT = '/api/2023-01/graphql.json';

View File

@ -10,11 +10,6 @@ module.exports = {
images: { images: {
formats: ['image/avif', 'image/webp'], formats: ['image/avif', 'image/webp'],
remotePatterns: [ remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.shopify.com',
pathname: '/s/files/**'
},
{ {
protocol: 'https', protocol: 'https',
hostname: 'medusa-public-images.s3.eu-west-1.amazonaws.com', hostname: 'medusa-public-images.s3.eu-west-1.amazonaws.com',