From 28c66939182c69f184b4e1fbc2afbf939e0744cf Mon Sep 17 00:00:00 2001 From: ekkelenk Date: Wed, 13 Dec 2023 09:23:32 +0100 Subject: [PATCH] staticwebapp.config.json should be in the dist folder. --- .../deployments/azure/azure-pipelines-archive.yml | 12 ++++++------ .../azure/azure-pipelines-secured-api.yml | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/public/deployments/azure/azure-pipelines-archive.yml b/docs/public/deployments/azure/azure-pipelines-archive.yml index 4b5bc92ca..9300fd433 100644 --- a/docs/public/deployments/azure/azure-pipelines-archive.yml +++ b/docs/public/deployments/azure/azure-pipelines-archive.yml @@ -31,17 +31,17 @@ steps: "VITE_MAPBOX_TOKEN": "$(VITE_MAPBOX_TOKEN)" } - script: | - cp docs/public/deployments/azure/staticwebapp.config.json . npm install npm --version node --version npm run build + cp docs/public/deployments/azure/staticwebapp.config.json dist displayName: 'npm install and build of Web Operator Client' - task: AzureStaticWebApp@0 inputs: - app_location: '/' + # When used with skip_app_build: true, this value is the app's build output location. + app_location: '/dist' api_location: '' - skip_app_build: true - app_artifact_location: 'dist' - output_location: '' - azure_static_web_apps_api_token: $(deployment_token) + skip_app_build: 'true' + verbose: 'true' + azure_static_web_apps_api_token: $(deployment_token) \ No newline at end of file diff --git a/docs/public/deployments/azure/azure-pipelines-secured-api.yml b/docs/public/deployments/azure/azure-pipelines-secured-api.yml index 04a95e914..2f104621d 100644 --- a/docs/public/deployments/azure/azure-pipelines-secured-api.yml +++ b/docs/public/deployments/azure/azure-pipelines-secured-api.yml @@ -36,17 +36,17 @@ steps: "VITE_AUTH_SCOPE": "openid profile email Offline_Access api://$(AZURE_APP_CLIENT_ID)/Delft-FEWSWebServices" } - script: | - cp docs/public/deployments/azure/staticwebapp.config.json . npm install npm --version node --version npm run build + cp docs/public/deployments/azure/staticwebapp.config.json dist displayName: 'npm install and build of Web Operator Client' - task: AzureStaticWebApp@0 inputs: - app_location: '/' + # When used with skip_app_build: true, this value is the app's build output location. + app_location: '/dist' api_location: '' - skip_app_build: true - app_artifact_location: 'dist' - output_location: '' + skip_app_build: 'true' + verbose: 'true' azure_static_web_apps_api_token: $(deployment_token)