@gxp-dev/tools 2.0.67 → 2.0.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -56,6 +56,7 @@ function getApiConfig() {
|
|
|
56
56
|
// Mock API: use local dev server with random token
|
|
57
57
|
const protocol = useHttps ? "https" : "http"
|
|
58
58
|
return {
|
|
59
|
+
apiDocsBaseUrl: `${ENVIRONMENT_URLS.production.apiBaseUrl}`,
|
|
59
60
|
apiBaseUrl: `${protocol}://localhost:${mockPort}/mock-api`,
|
|
60
61
|
authToken: generateMockToken(),
|
|
61
62
|
projectId: "team/project",
|
|
@@ -137,6 +138,7 @@ export const useGxpStore = defineStore("gxp-portal-app", () => {
|
|
|
137
138
|
|
|
138
139
|
// API configuration - initialized from environment
|
|
139
140
|
const apiConfig = getApiConfig()
|
|
141
|
+
const apiDocsBaseUrl = ref(apiConfig.apiDocsBaseUrl ?? apiConfig.apiBaseUrl)
|
|
140
142
|
const apiBaseUrl = ref(apiConfig.apiBaseUrl)
|
|
141
143
|
const authToken = ref(apiConfig.authToken)
|
|
142
144
|
pluginVars.value.projectId = apiConfig.projectId
|
|
@@ -325,8 +327,6 @@ export const useGxpStore = defineStore("gxp-portal-app", () => {
|
|
|
325
327
|
// Operations are built from OpenAPI spec paths
|
|
326
328
|
// Structure: { [operationId]: { method, path, parameters } }
|
|
327
329
|
try {
|
|
328
|
-
const apiDocsBaseUrl =
|
|
329
|
-
apiEnv === "mock" ? "https://api.gramercy.cloud" : apiBaseUrl.value
|
|
330
330
|
const specUrl = `${apiDocsBaseUrl}/api-specs/openapi.json`
|
|
331
331
|
const response = await axios.get(specUrl)
|
|
332
332
|
const spec = response.data
|