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 = {}) => {