Skip to content

Commit 51e10ba

Browse files
Making a universal environment file so I don't have to keep copying things
1 parent 619f494 commit 51e10ba

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1+
import { allEnvironments } from "./environments-all";
2+
13
export const environment = {
24
siteUrl: 'http://localhost:4200',
35
apiUrl: 'http://localhost:5036/api/v1',
46
nullApiUrl: 'http://localhost:5219/null/v1',
57
twitchClientId: 'cvipqhi9y6ri8yhv0w8ryxokxh0ebd',
6-
twitchScopes: [
7-
// Default get email only! Used for login instead of Gmail.
8-
[
9-
'user:read:email'
10-
],
11-
// "Twitch Bot" permissions.
12-
[
13-
'user:read:email',
14-
'moderator:read:chatters'
15-
],
16-
]
8+
...allEnvironments
179
};
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1+
import { allEnvironments } from "./environments-all"
2+
13
export const environment = {
24
siteUrl: 'https://nullinside.com',
35
apiUrl: 'https://nullinside.com/api/v1',
46
nullApiUrl: 'https://nullinside.com/null/v1',
57
twitchClientId: 'gi1eu8xu9tl6vkjqz4tjqkdzfmcq5h',
6-
twitchScopes: [
7-
// Default get email only! Used for login instead of Gmail.
8-
[
9-
'user:read:email'
10-
],
11-
// "Twitch Bot" permissions.
12-
[
13-
'user:read:email',
14-
'moderator:read:chatters'
15-
],
16-
]
8+
...allEnvironments
179
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export const allEnvironments = {
2+
twitchScopes: [
3+
// Default get email only! Used for login instead of Gmail.
4+
[
5+
'user:read:email'
6+
],
7+
// "Twitch Bot" permissions.
8+
[
9+
'user:read:email',
10+
'moderator:read:chatters'
11+
]
12+
]
13+
}

0 commit comments

Comments
 (0)