diff --git a/.github/workflows/azure-static-web-apps-polite-dune-0c657411e.yml b/.github/workflows/azure-static-web-apps-polite-dune-0c657411e.yml index a73e7d93..97f81dfc 100644 --- a/.github/workflows/azure-static-web-apps-polite-dune-0c657411e.yml +++ b/.github/workflows/azure-static-web-apps-polite-dune-0c657411e.yml @@ -23,18 +23,6 @@ jobs: name: "context.json" json: '{"portalBaseUrl":"${{ vars.AZURE_PORTAL_API_URL_DEV }}","hostUrl":"${{ vars.AZURE_PORTAL_URL_DEV }}","authBaseUrl":"${{ vars.AZURE_PORTAL_URL_DEV }}/api/"}' dir: 'src/contexts/' - - name: Update proxy.json file - uses: jossef/action-set-json-field@v2.1 - with: - file: proxy.conf.json - field: target - value: "${{ vars.AZURE_PORTAL_URL_DEV }}/api/" - - name: print proxy.conf.json - run: cat proxy.conf.json - - name: Update staticwebapp.config.json - run: echo "`jq '((.routes[] | select(.route == "/geonetwork/*") | .redirect) |= "${{ vars.GEONETWORK_URL_DEV }}")' staticwebapp.config.json`" > staticwebapp.config.json - - name: print staticwebapp.config.json - run: cat staticwebapp.config.json - name: Build And Deploy id: builddeploy uses: Azure/static-web-apps-deploy@v1 diff --git a/.github/workflows/azure-static-web-apps-thankful-flower-08081a31e.yml b/.github/workflows/azure-static-web-apps-thankful-flower-08081a31e.yml index 3194cc21..a5312576 100644 --- a/.github/workflows/azure-static-web-apps-thankful-flower-08081a31e.yml +++ b/.github/workflows/azure-static-web-apps-thankful-flower-08081a31e.yml @@ -25,18 +25,6 @@ jobs: name: "context.json" json: '{"portalBaseUrl":"${{ vars.AZURE_PORTAL_API_URL_PROD }}","hostUrl":"${{ vars.AZURE_PORTAL_URL_PROD }}","authBaseUrl":"${{ vars.AZURE_PORTAL_URL_PROD }}/api/"}' dir: 'src/contexts/' - - name: Update proxy.json file - uses: jossef/action-set-json-field@v2.1 - with: - file: proxy.conf.json - field: target - value: "${{ vars.AZURE_PORTAL_URL_PROD }}/api/" - - name: print proxy.conf.json - run: cat proxy.conf.json - - name: Update staticwebapp.config.json - run: echo "`jq '((.routes[] | select(.route == "/geonetwork/*") | .redirect) |= "${{ vars.GEONETWORK_URL_PROD }}")' staticwebapp.config.json`" > staticwebapp.config.json - - name: print staticwebapp.config.json - run: cat staticwebapp.config.json - name: Build And Deploy id: builddeploy uses: Azure/static-web-apps-deploy@v1 diff --git a/staticwebapp.config.json b/staticwebapp.config.json index e3ec1fc6..bc1ad3d0 100644 --- a/staticwebapp.config.json +++ b/staticwebapp.config.json @@ -1,9 +1,5 @@ { "routes": [ - { - "route": "/geonetwork/*", - "redirect": "https://augeonetwork-dev.geoanalytics.group/geonetwork/" - }, { "route": "/login/*", "methods": ["GET","HEAD","POST","OPTIONS"],