fix: deploy
Some checks failed
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 8s
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Successful in 1m26s
Build & Deploy KLZ Cables / 🏗️ Build App (push) Successful in 2m30s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Successful in 44s
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Failing after 5m54s
Build & Deploy KLZ Cables / 🔔 Notifications (push) Successful in 2s

This commit is contained in:
2026-02-10 16:50:05 +01:00
parent 90e992636c
commit 87ef5798d2
2 changed files with 25 additions and 1 deletions

View File

@@ -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

View File

@@ -10,7 +10,6 @@ const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
outputFileTracingRoot: path.join(__dirname, '..'),
async redirects() {
return [
// Blog redirects