From e2a6bf9f947b1af2eb569de45226c672e44e9585 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 3 Dec 2020 22:28:05 -0800 Subject: [PATCH] Add environment variable for basePath. --- next.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index e98c091c..10d91d36 100644 --- a/next.config.js +++ b/next.config.js @@ -6,6 +6,7 @@ module.exports = { VERSION: pkg.version, FORCE_SSL: !!process.env.FORCE_SSL, }, + basePath: process.env.BASE_PATH, webpack(config) { config.module.rules.push({ test: /\.svg$/, @@ -28,6 +29,6 @@ module.exports = { }, ], }, - ] + ]; }, };