From 6a0269facc176992e7df413236151fd4b5e2decf Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 23 Feb 2026 12:49:04 +0100 Subject: [PATCH] chore(ci/routing): merge v1.1.7 fixes into main (routing fix & pipeline optimizations) --- .gitea/workflows/ci.yml | 1 + .gitea/workflows/deploy.yml | 21 +++++++--- app/[locale]/products/[...slug]/page.tsx | 29 ++++++------- components/RelatedProducts.tsx | 52 +++++++++++++++--------- next.config.mjs | 4 ++ 5 files changed, 67 insertions(+), 40 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7e8b5981..e168a88d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -34,6 +34,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + cache: 'pnpm' - name: ๐Ÿ” Configure Private Registry run: | diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 067cf23e..b78bf16a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -45,7 +45,7 @@ jobs: run: | echo "Purging old build layers and dangling images..." docker image prune -f - docker builder prune -f --filter "until=6h" + docker builder prune -f --filter "until=24h" - name: Checkout repository uses: actions/checkout@v4 @@ -165,6 +165,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + cache: 'pnpm' - name: ๐Ÿ” Registry Auth run: | echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc @@ -193,7 +194,7 @@ jobs: # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ build: name: ๐Ÿ—๏ธ Build - needs: [prepare, qa] + needs: [prepare] if: needs.prepare.outputs.target != 'skip' runs-on: docker container: @@ -392,7 +393,7 @@ jobs: name: ๐Ÿงช Smoke Test needs: [prepare, deploy] continue-on-error: true - if: needs.deploy.result == 'success' && github.ref_type != 'tag' + if: needs.deploy.result == 'success' && needs.prepare.outputs.target != 'branch' runs-on: docker container: image: catthehacker/ubuntu:act-latest @@ -425,7 +426,7 @@ jobs: name: โšก Lighthouse needs: [prepare, deploy] continue-on-error: true - if: success() && needs.prepare.outputs.target != 'skip' && github.ref_type != 'tag' + if: success() && needs.prepare.outputs.target != 'skip' && needs.prepare.outputs.target != 'branch' runs-on: docker container: image: catthehacker/ubuntu:act-latest @@ -440,6 +441,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + cache: 'pnpm' - name: ๐Ÿ” Registry Auth run: | echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc @@ -500,7 +502,7 @@ jobs: name: โ™ฟ WCAG needs: [prepare, deploy, smoke_test] continue-on-error: true - if: success() && needs.prepare.outputs.target != 'skip' && github.ref_type != 'tag' + if: success() && needs.prepare.outputs.target != 'skip' && needs.prepare.outputs.target != 'branch' runs-on: docker container: image: catthehacker/ubuntu:act-latest @@ -522,6 +524,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + cache: 'pnpm' - name: ๐Ÿ” Registry Auth run: | echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc @@ -582,7 +585,7 @@ jobs: name: ๐Ÿ›ก๏ธ Quality Gates needs: [prepare, deploy, smoke_test] continue-on-error: true - if: success() && needs.prepare.outputs.target != 'skip' && github.ref_type != 'tag' + if: success() && needs.prepare.outputs.target != 'skip' && needs.prepare.outputs.target != 'branch' runs-on: docker container: image: catthehacker/ubuntu:act-latest @@ -597,6 +600,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + cache: 'pnpm' - name: ๐Ÿ” Registry Auth run: | echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc @@ -630,6 +634,11 @@ jobs: container: image: catthehacker/ubuntu:act-latest steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' - name: ๐Ÿ”” Gotify run: | STATUS="${{ needs.deploy.result }}" diff --git a/app/[locale]/products/[...slug]/page.tsx b/app/[locale]/products/[...slug]/page.tsx index fb726aa5..cbf9bd06 100644 --- a/app/[locale]/products/[...slug]/page.tsx +++ b/app/[locale]/products/[...slug]/page.tsx @@ -53,11 +53,11 @@ export async function generateMetadata({ params }: ProductPageProps): Promise