From 87ef5798d26f55c6f7032472c654fe3b9f583b5a Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Tue, 10 Feb 2026 16:50:05 +0100 Subject: [PATCH] fix: deploy --- .gitea/workflows/deploy.yml | 25 +++++++++++++++++++++++++ next.config.mjs | 1 - 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 5cacbfe9..b01b475b 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -454,6 +454,31 @@ jobs: - name: Install dependencies run: pnpm install + - name: 🏥 Health Check (Wait for 200 OK) + env: + URL: ${{ needs.prepare.outputs.next_public_base_url }} + run: | + echo "Waiting for $URL to be ready..." + timeout=300 + interval=5 + elapsed=0 + + while [ $elapsed -lt $timeout ]; do + STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL" || echo "000") + echo "Attempt $((elapsed/interval+1)): Status $STATUS" + + if [ "$STATUS" = "200" ]; then + echo "✅ Site is healthy!" + exit 0 + fi + + sleep $interval + elapsed=$((elapsed + interval)) + done + + echo "❌ Timeout waiting for site to be healthy." + exit 1 + - name: 🔍 Install Chromium (Native & ARM64) run: | apt-get update diff --git a/next.config.mjs b/next.config.mjs index 4b53df22..13c6ae2e 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -10,7 +10,6 @@ const withNextIntl = createNextIntlPlugin(); /** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', - outputFileTracingRoot: path.join(__dirname, '..'), async redirects() { return [ // Blog redirects