From 7d4abb82b44c990cec5bd1eda0fe88c249b093f8 Mon Sep 17 00:00:00 2001 From: Danny Coulombe Date: Mon, 15 Dec 2025 10:04:44 -0500 Subject: [PATCH] Fix issue with BUILD_URL --- src/assets/example-structure.yaml | 2 +- src/utils.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/assets/example-structure.yaml b/src/assets/example-structure.yaml index a404ea4..69232af 100644 --- a/src/assets/example-structure.yaml +++ b/src/assets/example-structure.yaml @@ -21,7 +21,7 @@ triggers: build: label: Build icon: mdi-play - url: [STRUCTURE_EDITOR_URL]/build + url: [BUILD_URL]/build method: POST headers: Content-Type: application/json diff --git a/src/utils.ts b/src/utils.ts index 7b6e1ce..c98cdea 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -107,7 +107,8 @@ export const valueToString = (value: any) => { export const getDefaultStructureContent = (): string => { return (exampleStructure as string) - .replace('[STRUCTURE_EDITOR_URL]', window.location.origin); + .replace('[STRUCTURE_EDITOR_URL]', window.location.origin) + .replace('[BUILD_URL]', window.location.origin); } export const parseFields = (fields: any = {}, locales = {}, schemas: TSchema = {}) => {