chore: Remove env variables in webpack bundle (#1353)

* chore: Remove env variables in webpack bundle

* remove unused globals

* refactor: consolidate window.env calls to single file

* fix: Slack client side integration auth

* fix: developers url
This commit is contained in:
Tom Moor
2020-07-18 11:02:40 -07:00
committed by GitHub
parent 24448c7504
commit 67981a351e
32 changed files with 186 additions and 206 deletions

View File

@ -8,11 +8,12 @@ export function slackAuth(
"identity.avatar",
"identity.team",
],
clientId: string = process.env.SLACK_KEY,
redirectUri: string = `${process.env.URL}/auth/slack.callback`
): string {
const baseUrl = "https://slack.com/oauth/authorize";
const params = {
client_id: process.env.SLACK_KEY,
client_id: clientId,
scope: scopes ? scopes.join(" ") : "",
redirect_uri: redirectUri,
state,
@ -53,12 +54,8 @@ export function mailToUrl(): string {
return "mailto:hello@getoutline.com";
}
export function features(): string {
return `${process.env.URL}/#features`;
}
export function developers(): string {
return `${process.env.URL}/developers`;
return `https://www.getoutline.com/developers`;
}
export function changelog(): string {