hackclub / sprig

🍃 Learn to code by making games in a JavaScript web-based game editor.

Home Page:https://sprig.hackclub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview branches are broken by default (you cannot successfully login)

grymmy opened this issue · comments

Due to the whitelisting that is done in Sprig, preview branches are broken by default. A preview URL such as https://sprig-u0ol139ul-gamer.vercel.app/ does not allow one to login.

I've noticed preview URLs with *-gamer.vercel.app are the ones where login fails. After some digging I found there's another team called Gamer that automatically deploys the game submissions PRs and not Hack Club's main Vercel account. The URLs in the preview link will only be replaced by Hack Club's when the deployment is authorized by a team member on Vercel

Have setup a firebase project for preview deployments and removed the Gamer team (which does not belong to Hack Club) as a deployment environment from the Sprig project. I've tested and the preview deployment works fine and it's possible to log in.