fix(automate): emit valid json in dotnet test automation config (#4855)

This commit is contained in:
Chuck Driesler
2025-06-03 09:40:50 +01:00
committed by GitHub
parent dae238f705
commit ffe06bad6a
2 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ NUXT_PUBLIC_DATADOG_ENV=
NUXT_PUBLIC_DEBUG_CORE_WEB_VITALS=false
# Enable Speckle Automate functionality
NUXT_PUBLIC_ENABLE_AUTOMATE_MODULE=false
NUXT_PUBLIC_FF_AUTOMATE_MODULE_ENABLED=false
# Intercom App ID
NUXT_PUBLIC_INTERCOM_APP_ID=
@@ -78,14 +78,16 @@ const environment = computed(() => {
].join('\n')
}
case 'dotnet': {
return [
'{',
' "SpeckleToken": "YOUR-TOKEN-HERE"',
` "SpeckleServerUrl": "${origin}"`,
` "SpeckleProjectId": "${props.projectId}"`,
` "SpeckleAutomationId": "${props.automationId}"`,
'}'
].join('\n')
return JSON.stringify(
{
SpeckleToken: 'YOUR-TOKEN-HERE',
SpeckleServerUrl: origin,
SpeckleProjectId: props.projectId,
SpeckleAutomationId: props.automationId
},
null,
2
)
}
default: {
return ''