Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/deploy-front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 0 additions & 1 deletion front/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down