therungg / therun-frontend

Frontend for therun.gg
https://therun-fr-therun.vercel.app
MIT License
26 stars 8 forks source link

Added base url to env vars and fixed twitch login #49

Closed therungg closed 1 year ago

therungg commented 1 year ago

Did two things at once, sorry!

1: Get baseUrl from environment. Is now gotten in function getBaseUrl in _app.tsx and set to context from there

2: Fixed twitch login - params should not be url-encoded, the client_id was retrieved incorrectly (env var needs to be explicitly retrieved) and baseUrl was not available in context of the Layout