|
@@ -18,6 +18,7 @@ export class InstallerService {
|
|
|
const clientId = process.env.SLACK_CLIENT_ID;
|
|
const clientId = process.env.SLACK_CLIENT_ID;
|
|
|
const clientSecret = process.env.SLACK_CLIENT_SECRET;
|
|
const clientSecret = process.env.SLACK_CLIENT_SECRET;
|
|
|
const stateSecret = process.env.SLACK_INSTALLPROVIDER_STATE_SECRET;
|
|
const stateSecret = process.env.SLACK_INSTALLPROVIDER_STATE_SECRET;
|
|
|
|
|
+ const serverURI = process.env.SERVER_URI;
|
|
|
|
|
|
|
|
if (clientId === undefined) {
|
|
if (clientId === undefined) {
|
|
|
throw new Error('The environment variable \'SLACK_CLIENT_ID\' must be defined.');
|
|
throw new Error('The environment variable \'SLACK_CLIENT_ID\' must be defined.');
|
|
@@ -25,6 +26,9 @@ export class InstallerService {
|
|
|
if (clientSecret === undefined) {
|
|
if (clientSecret === undefined) {
|
|
|
throw new Error('The environment variable \'SLACK_CLIENT_SECRET\' must be defined.');
|
|
throw new Error('The environment variable \'SLACK_CLIENT_SECRET\' must be defined.');
|
|
|
}
|
|
}
|
|
|
|
|
+ if (serverURI === undefined) {
|
|
|
|
|
+ throw new Error('The environment variable \'SERVER_URI\' must be defined.');
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
const { repository } = this;
|
|
const { repository } = this;
|
|
|
|
|
|