chore: move rewrites to beforeFiles and fix smoke test dependencies
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🩺 Smoke Test (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 🏗️ Build (push) Has been cancelled

This commit is contained in:
2026-04-12 01:51:43 +02:00
parent 1a8758a88c
commit 631d051c2e
2 changed files with 17 additions and 16 deletions

View File

@@ -446,6 +446,7 @@ jobs:
- name: 🌐 Check Production URL - name: 🌐 Check Production URL
shell: sh shell: sh
run: | run: |
apk add --no-cache curl
# Wait longer (up to 2 minutes) for Next.js to fully prime # Wait longer (up to 2 minutes) for Next.js to fully prime
COUNT=0 COUNT=0
MAX=24 MAX=24

View File

@@ -38,22 +38,22 @@ const nextConfig = {
], ],
}, },
async rewrites() { async rewrites() {
return [ return {
// Umami proxy rewrite handled in app/stats/api/send/route.ts beforeFiles: [
// Sentry relay handled in app/errors/api/relay/route.ts {
{ source: '/assets/:path*',
source: '/assets/:path*', destination: '/showcase/klz-cables.com/assets/:path*',
destination: '/showcase/klz-cables.com/assets/:path*', },
}, {
{ source: '/wp-content/:path*',
source: '/wp-content/:path*', destination: '/showcase/klz-cables.com/assets/klz-cables.com/wp-content/:path*',
destination: '/showcase/klz-cables.com/assets/klz-cables.com/wp-content/:path*', },
}, {
{ source: '/wp-includes/:path*',
source: '/wp-includes/:path*', destination: '/showcase/klz-cables.com/assets/klz-cables.com/wp-includes/:path*',
destination: '/showcase/klz-cables.com/assets/klz-cables.com/wp-includes/:path*', },
}, ],
]; };
}, },
async redirects() { async redirects() {
return [ return [