alcpereira / 100hunters

Let's goooo
6 stars 11 forks source link

Spike PlanetScale branches #24

Open alcpereira opened 2 months ago

alcpereira commented 2 months ago

Description

PlanetScale has a powerful branching system, ideally we could create a branch for each PR and seed the database for our PR needs.

My main original idea is to use IS_PULL_REQUEST environment variable from Render (our current hosting solution), if it's true then use a webhook from PlanetScale to generate a branch and use it in pool.server.ts and seed it for the needs of the PR.

This is actually one of the use cases they mention.

ACs