404 Error from Github private repo
I get a 404 error from Github when using a private repo. Am I missing something? The install form asked for my username and repository, it did not ask for a key or token. I have awarded my Vercel account permission to access the Github repo, this did not change the 404 error.
Looking through the Hazel repository, I cannot find where my specific username and repository are declared. Are these variables stored in Vercel? Also, are these variables something I could hardcode in the /lib/server.js file?
Always, and I cannot stress this enough, read the documentation! Set the env variable TOKEN for private repos. As states in the Readme
@dlamon1 I can't figure out how to set a TOKEN for my private repo. Where should I add this in my files? or is this run via a CLI command?
Any examples would be great!
@tarikhaiga
This is added inside of Vercel once you've deployed Hazel (https://vercel.com/ACCOUNT_NAME/PROJECT_NAME/settings/environment-variables)
l
Thanks @ryandunnewold ! I added both TOKEN and GH_TOKEN in the Environment Variables section on Vercel but it still does not trigger an update when one is available.
How did you manage to make auto-updating work for private repos?
@tarikhaiga here was the issue I ran into (included my fix in there) https://github.com/vercel/hazel/issues/131
I had to redeploy the app to make it read TOKEN variable
Thanks @Deliaz, redeploying worked for me 👍🏻
What's the leanest scope the token can have?