From 70af0f32e9372f2168811d2040905ff1a44fb499 Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Thu, 24 Jun 2021 19:27:51 +0530 Subject: [PATCH] fix: axios baseurl correction In the baseurl `/` at the end should be removed Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- packages/nc-gui/nuxt.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/nuxt.config.js b/packages/nc-gui/nuxt.config.js index ddfdf19ba1..8cdaee470c 100644 --- a/packages/nc-gui/nuxt.config.js +++ b/packages/nc-gui/nuxt.config.js @@ -86,7 +86,7 @@ export default { ** See https://axios.nuxtjs.org/options */ axios: { - baseURL: process.env.NC_BACKEND_URL || (process.env.NODE_ENV === 'production' ? '../' : 'http://localhost:8080/'), + baseURL: process.env.NC_BACKEND_URL || (process.env.NODE_ENV === 'production' ? '..' : 'http://localhost:8080'), }, /* ** vuetify module configuration @@ -233,4 +233,4 @@ export default { * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * - */ \ No newline at end of file + */