bdougie / live

:microphone: The code that powers bdougie.live
https://bdougie.live
MIT License
24 stars 11 forks source link

Remove onegraph proxy for GitHub #140

Closed dwwoelfel closed 1 year ago

dwwoelfel commented 1 year ago

Uses the relay compiler to generate next.js API routes by abusing the "persistConfig". The generated API routes will check that the variables are allowed and only allow the whitelisted variables to be used in the query.

Also upgrades next.js and Relay

Now that we're not hitting OneGraph, it will require a GitHub token, which you can get from https://github.com/settings/tokens.

The token only needs the "public_repo" scope.

Once you have the token, add it to a new environment variable called GITHUB_TOKEN. Then you should be able to deploy.

Note that mutations (like adding comments and reactions) will no longer work

vercel[bot] commented 1 year ago

Someone is attempting to deploy a commit to a Personal Account owned by @bdougie on Vercel.

@bdougie first needs to authorize it.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
live ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 24, 2023 at 3:56AM (UTC)