From 667ee670284066dca61db1a87458bf98c5c7bcb1 Mon Sep 17 00:00:00 2001 From: Eva Martin del Pico Date: Thu, 24 Oct 2024 15:09:56 +0200 Subject: [PATCH] fix: plugin URLs --- plugins/githubapp.js | 6 +++--- plugins/observatory.js | 9 +++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/plugins/githubapp.js b/plugins/githubapp.js index 907b6cd5..6d502637 100644 --- a/plugins/githubapp.js +++ b/plugins/githubapp.js @@ -1,4 +1,4 @@ -export default function ({ $axios, $config: { _GITHUBAPP_API_URL } }, inject) { +export default function ({ $axios, $config: { GITHUBAPP_API_URL } }, inject) { // Create a custom axios instance const githubapp = $axios.create({ headers: { @@ -10,9 +10,9 @@ export default function ({ $axios, $config: { _GITHUBAPP_API_URL } }, inject) { // Set baseURL to something different // githubapp.setBaseURL('https://observatory-dev.openebench.bsc.es/github-metadata-api'); - githubapp.setBaseURL('http://localhost:3800'); + // githubapp.setBaseURL('http://localhost:3800'); - // githubapp.setBaseURL(GITHUBAPP_API_URL); + githubapp.setBaseURL(GITHUBAPP_API_URL); // Inject to context as $api inject('githubapp', githubapp); diff --git a/plugins/observatory.js b/plugins/observatory.js index 254ee6db..0eb070ef 100644 --- a/plugins/observatory.js +++ b/plugins/observatory.js @@ -1,7 +1,4 @@ -export default function ( - { $axios, $config: { _OBSERVATORY_API_URL } }, - inject -) { +export default function ({ $axios, $config: { OBSERVATORY_API_URL } }, inject) { // Create a custom axios instance const observatory = $axios.create({ headers: { @@ -12,9 +9,9 @@ export default function ( }); // Set baseURL to something different - observatory.setBaseURL('http://0.0.0.0:3500'); + // observatory.setBaseURL('http://0.0.0.0:3500'); - // observatory.setBaseURL(OBSERVATORY_API_URL); + observatory.setBaseURL(OBSERVATORY_API_URL); // Inject to context as $api inject('observatory', observatory);