Merge pull request #18 from niteshiftdev/yann/warm-up-dev-server

Warm up Next.js routes after dev server starts
This commit is contained in:
Yann 2025-11-14 09:55:34 -05:00 committed by GitHub
commit 1a0f5f8385
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,6 +179,14 @@ while [ $ATTEMPT -lt $MAX_ATTEMPTS ]; do
sleep 1
done
# 8. Warm up the main application routes
log "Warming up main application routes..."
if curl -s -o /dev/null --max-time 30 http://localhost:3001/ 2>/dev/null; then
log "✓ Main routes pre-compiled"
else
log "Warning: Route warm-up timed out or failed (non-critical)"
fi
log ""
log "================================================================"
log "Setup complete! Umami dev server is running on http://localhost:3001"