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
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 there2: 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