Skip to content

Keep PlanetScale database awake on free tier...

Notifications You must be signed in to change notification settings

dvlden/ps-awake

Repository files navigation

PS Awake

Awake PlanetScale database using CloudFlare's Scheduled Worker.

Prerequisite

You will need to create CloudFlare kv:namespace and kv:key(s) for endpoint and token (in my case). As your case may be very different, feel free to tweak it as needed.

Why

I needed this for personal use, but I'm sharing it publicly so that anyone can use it. Tweak it as needed. In my case, it will hit POST & DELETE request once a week, keeping my PlanetScale database awake at all times.

Official docs https://developers.cloudflare.com/workers/examples/cron-trigger/

About

Keep PlanetScale database awake on free tier...

Topics

Resources

Stars

Watchers

Forks