Skip to content

Commit

Permalink
fix: plugin URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaMart committed Oct 24, 2024
1 parent 326985d commit 667ee67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions plugins/githubapp.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -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);
Expand Down
9 changes: 3 additions & 6 deletions plugins/observatory.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -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);
Expand Down

0 comments on commit 667ee67

Please sign in to comment.