From d6fa6a0f12ae2d103d4fab98fa9d1b83e14663ec Mon Sep 17 00:00:00 2001 From: Jeff Mueller Date: Tue, 17 Sep 2024 14:08:13 -0400 Subject: [PATCH] Remove base URL settings that point to MIX_APP_URL --- resources/js/api/ConceptService.js | 2 +- resources/js/api/ConceptSourceService.js | 2 +- resources/js/api/TermService.js | 2 +- resources/js/components/CPFForm.vue | 2 +- resources/js/components/Concept/Create.vue | 2 +- resources/js/components/Concept/Default.vue | 2 +- resources/js/components/Concept/Edit.vue | 2 +- resources/js/components/Concept/List.vue | 2 +- resources/js/components/Source/Default.vue | 2 +- resources/js/components/Source/Edit.vue | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/js/api/ConceptService.js b/resources/js/api/ConceptService.js index 962b626..f5e7e49 100644 --- a/resources/js/api/ConceptService.js +++ b/resources/js/api/ConceptService.js @@ -1,7 +1,7 @@ import axios from 'axios'; const apiClient = axios.create({ - baseURL: `${process.env.MIX_APP_URL}/api/concepts`, + baseURL: `api/concepts`, }); export default { diff --git a/resources/js/api/ConceptSourceService.js b/resources/js/api/ConceptSourceService.js index c15fc91..b5524ae 100644 --- a/resources/js/api/ConceptSourceService.js +++ b/resources/js/api/ConceptSourceService.js @@ -1,7 +1,7 @@ import axios from 'axios'; const apiClient = axios.create({ - baseURL: `${process.env.MIX_APP_URL}/api/concept_sources`, + baseURL: `api/concept_sources`, }); export default { diff --git a/resources/js/api/TermService.js b/resources/js/api/TermService.js index 830c8e9..f7084aa 100644 --- a/resources/js/api/TermService.js +++ b/resources/js/api/TermService.js @@ -1,7 +1,7 @@ import axios from 'axios'; const apiClient = axios.create({ - baseURL: `${process.env.MIX_APP_URL}/api/terms`, + baseURL: `api/terms`, }); export default { diff --git a/resources/js/components/CPFForm.vue b/resources/js/components/CPFForm.vue index fc11a58..081d4ef 100644 --- a/resources/js/components/CPFForm.vue +++ b/resources/js/components/CPFForm.vue @@ -655,7 +655,7 @@ export default { propertyEditMode: true, categories, isVocabularyEditor: this.canEditVocabulary === true, - baseURL: process.env.MIX_APP_URL, + baseURL: '', }; }, computed: { diff --git a/resources/js/components/Concept/Create.vue b/resources/js/components/Concept/Create.vue index bc48f5c..ec7692e 100644 --- a/resources/js/components/Concept/Create.vue +++ b/resources/js/components/Concept/Create.vue @@ -99,7 +99,7 @@ export default { saving: false, categories, categoryId: null, - baseURL: process.env.MIX_APP_URL, + baseURL: '', preferredTermInvalid: 'Preferred Term is required.', alternateTermInvalid: 'Alternate Term cannot be empty.', }; diff --git a/resources/js/components/Concept/Default.vue b/resources/js/components/Concept/Default.vue index 65919f8..28a3a51 100644 --- a/resources/js/components/Concept/Default.vue +++ b/resources/js/components/Concept/Default.vue @@ -132,7 +132,7 @@ export default { categories, cats: this.conceptProps.concept_categories, isVocabularyEditor: this.canEditVocabulary !== 'false', - baseURL: process.env.MIX_APP_URL, + baseURL: '', devFeatures: process.env.MIX_INCLUDE_DEVELOPMENT_FEATURES == 'true', }; }, diff --git a/resources/js/components/Concept/Edit.vue b/resources/js/components/Concept/Edit.vue index 575bd58..883eae6 100644 --- a/resources/js/components/Concept/Edit.vue +++ b/resources/js/components/Concept/Edit.vue @@ -285,7 +285,7 @@ export default { cats: this.conceptProps.concept_categories, selectedCategory: this.conceptProps.concept_categories[0].id, isVocabularyEditor: this.canEditVocabulary !== 'false', - baseURL: process.env.MIX_APP_URL, + baseURL: '', devFeatures: process.env.MIX_INCLUDE_DEVELOPMENT_FEATURES == 'true', }; }, diff --git a/resources/js/components/Concept/List.vue b/resources/js/components/Concept/List.vue index 0d46edd..d223016 100644 --- a/resources/js/components/Concept/List.vue +++ b/resources/js/components/Concept/List.vue @@ -108,7 +108,7 @@ export default { currentPage: 1, perPage: 15, totalRows: 1, - baseURL: process.env.MIX_APP_URL, + baseURL: '', }; }, computed: { diff --git a/resources/js/components/Source/Default.vue b/resources/js/components/Source/Default.vue index 9f53b86..12add2e 100644 --- a/resources/js/components/Source/Default.vue +++ b/resources/js/components/Source/Default.vue @@ -53,7 +53,7 @@ export default { editMode: false, isVocabularyEditor: this.canEditVocabulary === true, index: this.sourceIndex, - baseURL: process.env.MIX_APP_URL, + baseURL: '', state: state, }; }, diff --git a/resources/js/components/Source/Edit.vue b/resources/js/components/Source/Edit.vue index d9a7599..f8bf3b2 100644 --- a/resources/js/components/Source/Edit.vue +++ b/resources/js/components/Source/Edit.vue @@ -86,7 +86,7 @@ export default { note: null, isVocabularyEditor: this.canEditVocabulary === true, index: this.sourceIndex, - baseURL: process.env.MIX_APP_URL, + baseURL: '', }; }, methods: {