Question

Replit app sleeps and the first donor gets a 30 second spinner

Solved · 158 viewsasked by amara_v

My donor form is on Replit. Nobody uses it at night, and the first person in the morning waits 30 seconds. Some give up.

What I’ve tried

Turned on "Always On" once, but it costs more than the donations some months.

Comment

2 answers

Marked as helpful by the asker
jonas_k

That's the cold start. Two cheap options:

  1. A free uptime monitor (Better Stack, UptimeRobot) pinging your URL every 5 minutes keeps it awake for free.
  2. Move the form to a static host (Vercel, Netlify) and only call Replit for the submit. Static pages never sleep.

For a donation form I'd do 2: the page must be instant, the backend can take a second.

Comment
UptimeRobot set up. First donor this morning got the page in 2 seconds. amara_v
priya_ships

If the form only collects donations, you might not need a server at all. A payment link from your payment provider is a hosted page: no backend, never sleeps, and card handling isn't your problem. Put the link behind a "Donate" button on a static page and use the provider's dashboard or a webhook later for the thank-you email.

Keep Replit for the parts that really need code.

Comment
We only need an amount and an email. A payment link would remove half the app. Looking into it this weekend. amara_v