From a85faf993550602a3427cc98c31cd126526bcb39 Mon Sep 17 00:00:00 2001 From: Paul Toffoloni Date: Mon, 9 Sep 2024 12:19:21 +0200 Subject: [PATCH 1/4] Try fixing 404 page not appearing --- stack.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stack.yml b/stack.yml index b0d8cd7..6465210 100644 --- a/stack.yml +++ b/stack.yml @@ -21,7 +21,7 @@ Resources: WebsiteConfiguration: IndexDocument: index.html # Redirect - ErrorDocument: /error/404/index.html + ErrorDocument: error/404/index.html RoutingRules: - RoutingRuleCondition: HttpErrorCodeReturnedEquals: '404' @@ -49,6 +49,9 @@ Resources: - ErrorCode: 403 ResponseCode: 404 ResponsePagePath: '/error/404/index.html' + - ErrorCode: 404 + ResponseCode: 404 + ResponsePagePath: '/error/404/index.html' DefaultCacheBehavior: AllowedMethods: - GET From eaf897b3d97eeb0d6fcebd862bef6bd2b190f1e6 Mon Sep 17 00:00:00 2001 From: Paul Toffoloni Date: Mon, 9 Sep 2024 15:45:03 +0200 Subject: [PATCH 2/4] Update CI --- .github/workflows/pr.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index ee9eae2..888ef5c 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -35,3 +35,5 @@ jobs: bucket-prefix: "vapor-website-pulls" folder-to-copy: "./Output" bucket-region: "eu-west-2" + error-document: "error/404/index.html" + From f11f4eeea97b5c5724f7ad1b53142a42d5d61ab3 Mon Sep 17 00:00:00 2001 From: Paul Toffoloni Date: Mon, 9 Sep 2024 15:50:04 +0200 Subject: [PATCH 3/4] Update CI --- .github/workflows/pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 888ef5c..ad7c1b0 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -26,7 +26,7 @@ jobs: run: swift run - name: Deploy S3 Website if: ${{ github.event.pull_request.head.repo.full_name == 'vapor/website' && github.actor != 'dependabot[bot]' }} - uses: brokenhandsio/s3-website-pr-action@v2 + uses: brokenhandsio/s3-website-pr-action@v2.0.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} AWS_ACCESS_KEY_ID: ${{ secrets.SITE_DEPLOYER_ACCESS_KEY_ID }} From bcf49f04b8dbee6915800466ab600be6216d780b Mon Sep 17 00:00:00 2001 From: Paul Toffoloni Date: Mon, 9 Sep 2024 15:53:10 +0200 Subject: [PATCH 4/4] Update CI --- .github/workflows/pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index ad7c1b0..afbc5e4 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -35,5 +35,5 @@ jobs: bucket-prefix: "vapor-website-pulls" folder-to-copy: "./Output" bucket-region: "eu-west-2" - error-document: "error/404/index.html" + error-document: "404.html"