diff --git a/.github/workflows/deploy-front.yml b/.github/workflows/deploy-front.yml index 428ca6e..d8e48c5 100644 --- a/.github/workflows/deploy-front.yml +++ b/.github/workflows/deploy-front.yml @@ -79,8 +79,11 @@ jobs: echo "Triggering on-demand revalidation..." REVAL_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$SITE_URL/api/revalidate?secret=$REVALIDATION_SECRET") echo " Revalidation response: HTTP $REVAL_STATUS" - sleep 2 - echo "Requesting home page to trigger regeneration..." + echo "First request (triggers background regeneration)..." + curl -s -o /dev/null "$SITE_URL/" + echo "Waiting for background regeneration to complete..." + sleep 5 + echo "Second request (should get fresh data)..." HOME_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$SITE_URL/") echo " Home response: HTTP $HOME_STATUS" echo "Warm-up complete" diff --git a/front/Dockerfile b/front/Dockerfile index 783a358..86e1062 100644 --- a/front/Dockerfile +++ b/front/Dockerfile @@ -45,7 +45,6 @@ ENV PORT=3000 # - public assets in /public COPY --from=builder /app/front/.next/standalone ./ COPY --from=builder /app/front/.next/static ./front/.next/static -COPY --from=builder /app/front/.next/cache ./front/.next/cache COPY --from=builder /app/front/public ./front/public EXPOSE 3000