From 19f5b9d6c6f32a20ac10740fe9b5155977bffc27 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Mon, 6 Sep 2021 01:58:17 -0700 Subject: [PATCH] added BASE_URL in nextjs config (#587) --- next.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/next.config.js b/next.config.js index a41d034b94..9160d4c626 100644 --- a/next.config.js +++ b/next.config.js @@ -58,4 +58,7 @@ module.exports = withTM({ }, ]; }, + publicRuntimeConfig: { + BASE_URL: process.env.BASE_URL || "http://localhost:3000", + }, });