From 777ebfde0fc786c43e70576dda95ad6614abb018 Mon Sep 17 00:00:00 2001 From: The Nguyen <6950941+treoden@users.noreply.github.com> Date: Sat, 28 Oct 2023 15:48:42 +0700 Subject: [PATCH] Fix port number. Allow to set port from env --- packages/evershop/src/modules/base/api/global/context.js | 2 +- packages/evershop/src/modules/base/pages/global/context.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/evershop/src/modules/base/api/global/context.js b/packages/evershop/src/modules/base/api/global/context.js index bc28aea9a..75fbeb9e2 100644 --- a/packages/evershop/src/modules/base/api/global/context.js +++ b/packages/evershop/src/modules/base/api/global/context.js @@ -1,9 +1,9 @@ const { pool } = require('@evershop/evershop/src/lib/postgres/connection'); +const { getConfig } = require('@evershop/evershop/src/lib/util/getConfig'); const { setContextValue, hasContextValue } = require('../../../graphql/services/contextHelper'); -const { getConfig } = require('@evershop/evershop/src/lib/util/getConfig'); module.exports = (request, response) => { response.context = {}; diff --git a/packages/evershop/src/modules/base/pages/global/context.js b/packages/evershop/src/modules/base/pages/global/context.js index 492e79bff..ed019f077 100644 --- a/packages/evershop/src/modules/base/pages/global/context.js +++ b/packages/evershop/src/modules/base/pages/global/context.js @@ -1,9 +1,9 @@ const { pool } = require('@evershop/evershop/src/lib/postgres/connection'); +const { getConfig } = require('@evershop/evershop/src/lib/util/getConfig'); const { setContextValue, hasContextValue } = require('../../../graphql/services/contextHelper'); -const { getConfig } = require('@evershop/evershop/src/lib/util/getConfig'); module.exports = (request, response) => { response.context = {}; // TODO: Fix this