diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1be82ea..ef515f5 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -446,6 +446,7 @@ jobs: - name: 🌐 Check Production URL shell: sh run: | + apk add --no-cache curl # Wait longer (up to 2 minutes) for Next.js to fully prime COUNT=0 MAX=24 diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index db42184..a03bfd4 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -38,22 +38,22 @@ const nextConfig = { ], }, async rewrites() { - return [ - // Umami proxy rewrite handled in app/stats/api/send/route.ts - // Sentry relay handled in app/errors/api/relay/route.ts - { - source: '/assets/:path*', - destination: '/showcase/klz-cables.com/assets/:path*', - }, - { - source: '/wp-content/:path*', - destination: '/showcase/klz-cables.com/assets/klz-cables.com/wp-content/:path*', - }, - { - source: '/wp-includes/:path*', - destination: '/showcase/klz-cables.com/assets/klz-cables.com/wp-includes/:path*', - }, - ]; + return { + beforeFiles: [ + { + source: '/assets/:path*', + destination: '/showcase/klz-cables.com/assets/:path*', + }, + { + source: '/wp-content/:path*', + destination: '/showcase/klz-cables.com/assets/klz-cables.com/wp-content/:path*', + }, + { + source: '/wp-includes/:path*', + destination: '/showcase/klz-cables.com/assets/klz-cables.com/wp-includes/:path*', + }, + ], + }; }, async redirects() { return [