From 72e0cbb0f3b8611676059f1377b54d8023e0e8d4 Mon Sep 17 00:00:00 2001 From: Chika Date: Sat, 16 Jul 2022 20:27:44 +0300 Subject: [PATCH] graphql: fix apollo http errors on client --- .env | 3 --- next.config.js | 8 -------- 2 files changed, 11 deletions(-) diff --git a/.env b/.env index 27c119b..c305002 100644 --- a/.env +++ b/.env @@ -1,5 +1,2 @@ ####### USERS ######## USERS_SUPER=["akalinina","vchikalkin"] - -####### URLS ######## -NEXT_PUBLIC_URL_CRM_GRAPHQL_PROXY=/api/crmgraphql diff --git a/next.config.js b/next.config.js index e0dbc5f..2550335 100644 --- a/next.config.js +++ b/next.config.js @@ -15,14 +15,6 @@ const nextConfig = { styledComponents: true, }, pageExtensions: ['tsx', 'jsx'], - async rewrites() { - return [ - { - source: process.env.NEXT_PUBLIC_URL_CRM_GRAPHQL_PROXY, - destination: process.env.NEXT_PUBLIC_URL_CRM_GRAPHQL_DIRECT, - }, - ]; - }, experimental: { modularizeImports: { 'lodash-es': {