fix: deploy
This commit is contained in:
@@ -454,6 +454,31 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
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)
|
- name: 🔍 Install Chromium (Native & ARM64)
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ const withNextIntl = createNextIntlPlugin();
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
output: 'standalone',
|
output: 'standalone',
|
||||||
outputFileTracingRoot: path.join(__dirname, '..'),
|
|
||||||
async redirects() {
|
async redirects() {
|
||||||
return [
|
return [
|
||||||
// Blog redirects
|
// Blog redirects
|
||||||
|
|||||||
Reference in New Issue
Block a user