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_REQUESTenvironment 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.
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 inpool.server.ts
and seed it for the needs of the PR.This is actually one of the use cases they mention.
ACs