Skip to content

Commit 697e950

Browse files
committed
Fix: rewire Zurich community to the dedicated CMS space, instead of CS one
1 parent a7bd129 commit 697e950

File tree

16 files changed

+27
-19
lines changed

16 files changed

+27
-19
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ ARG CONTENTFUL_PREVIEW_API_KEY
2020
ARG CONTENTFUL_SPACE_ID
2121

2222
# Credentials for access to Expert Communities space in Contentful CMS
23-
ARG CONTENTFUL_EXPERT_COMMUNITIES_SPACE_ID
24-
ARG CONTENTFUL_EXPERT_COMMUNITIES_CDN_API_KEY
25-
ARG CONTENTFUL_EXPERT_COMMUNITIES_PREVIEW_API_KEY
23+
ARG CONTENTFUL_ZURICH_SPACE_ID
24+
ARG CONTENTFUL_ZURICH_CDN_API_KEY
25+
ARG CONTENTFUL_ZURICH_PREVIEW_API_KEY
2626

2727
# Credentials for access to TopGear space in Contentful CMS
2828
ARG CONTENTFUL_TOPGEAR_SPACE_ID
@@ -53,9 +53,9 @@ ENV CONTENTFUL_PREVIEW_API_KEY=$CONTENTFUL_PREVIEW_API_KEY
5353
ENV CONTENTFUL_SPACE_ID=$CONTENTFUL_SPACE_ID
5454

5555
# Credentials for access to Expert Communities space in Contentful CMS
56-
ENV CONTENTFUL_EXPERT_COMMUNITIES_SPACE_ID=$CONTENTFUL_EXPERT_COMMUNITIES_SPACE_ID
57-
ENV CONTENTFUL_EXPERT_COMMUNITIES_CDN_API_KEY=$CONTENTFUL_EXPERT_COMMUNITIES_CDN_API_KEY
58-
ENV CONTENTFUL_EXPERT_COMMUNITIES_PREVIEW_API_KEY=$CONTENTFUL_EXPERT_COMMUNITIES_PREVIEW_API_KEY
56+
ENV CONTENTFUL_ZURICH_SPACE_ID=$CONTENTFUL_ZURICH_SPACE_ID
57+
ENV CONTENTFUL_ZURICH_CDN_API_KEY=$CONTENTFUL_ZURICH_CDN_API_KEY
58+
ENV CONTENTFUL_ZURICH_PREVIEW_API_KEY=$CONTENTFUL_ZURICH_PREVIEW_API_KEY
5959

6060
# Credentials for access to TopGear space in Contentful CMS
6161
ENV CONTENTFUL_TOPGEAR_SPACE_ID=$CONTENTFUL_TOPGEAR_SPACE_ID

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ docker build -t $TAG \
4343
--build-arg CONTENTFUL_CDN_API_KEY=$CONTENTFUL_CDN_API_KEY \
4444
--build-arg CONTENTFUL_PREVIEW_API_KEY=$CONTENTFUL_PREVIEW_API_KEY \
4545
--build-arg CONTENTFUL_SPACE_ID=$CONTENTFUL_SPACE_ID \
46-
--build-arg CONTENTFUL_EXPERT_COMMUNITIES_SPACE_ID=$CONTENTFUL_EXPERT_COMMUNITIES_SPACE_ID \
47-
--build-arg CONTENTFUL_EXPERT_COMMUNITIES_CDN_API_KEY=$CONTENTFUL_EXPERT_COMMUNITIES_CDN_API_KEY \
48-
--build-arg CONTENTFUL_EXPERT_COMMUNITIES_PREVIEW_API_KEY=$CONTENTFUL_EXPERT_COMMUNITIES_PREVIEW_API_KEY \
46+
--build-arg CONTENTFUL_ZURICH_SPACE_ID=$CONTENTFUL_ZURICH_SPACE_ID \
47+
--build-arg CONTENTFUL_ZURICH_CDN_API_KEY=$CONTENTFUL_ZURICH_CDN_API_KEY \
48+
--build-arg CONTENTFUL_ZURICH_PREVIEW_API_KEY=$CONTENTFUL_ZURICH_PREVIEW_API_KEY \
4949
--build-arg CONTENTFUL_TOPGEAR_CDN_API_KEY=$CONTENTFUL_TOPGEAR_CDN_API_KEY \
5050
--build-arg CONTENTFUL_TOPGEAR_PREVIEW_API_KEY=$CONTENTFUL_TOPGEAR_PREVIEW_API_KEY \
5151
--build-arg CONTENTFUL_TOPGEAR_SPACE_ID=$CONTENTFUL_TOPGEAR_SPACE_ID \

config/custom-environment-variables.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ module.exports = {
3737
PREVIEW_API_KEY: 'CONTENTFUL_PREVIEW_API_KEY',
3838
},
3939
},
40-
expertCommunities: {
41-
SPACE_ID: 'CONTENTFUL_EXPERT_COMMUNITIES_SPACE_ID',
40+
zurich: {
41+
SPACE_ID: 'CONTENTFUL_ZURICH_SPACE_ID',
4242
master: {
43-
CDN_API_KEY: 'CONTENTFUL_EXPERT_COMMUNITIES_CDN_API_KEY',
44-
PREVIEW_API_KEY: 'CONTENTFUL_EXPERT_COMMUNITIES_PREVIEW_API_KEY',
43+
CDN_API_KEY: 'CONTENTFUL_ZURICH_CDN_API_KEY',
44+
PREVIEW_API_KEY: 'CONTENTFUL_ZURICH_PREVIEW_API_KEY',
4545
},
4646
},
4747
topgear: {

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ module.exports = {
163163
},
164164
},
165165
/* Space for expert communities. */
166-
expertCommunities: {
166+
zurich: {
167167
SPACE_ID: '',
168168
master: {
169169
CDN_API_KEY: '',

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/shared/components/tc-communities/communities/cs/Catalog.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export default function Catalog() {
77
query={{
88
'fields.name': 'CS Community - Catalog',
99
}}
10-
spaceName="expertCommunities"
1110
/>
1211
);
1312
}

src/shared/components/tc-communities/communities/cs/ChallengeListingBanner.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default function ChallengeListingBanner() {
1212
}}
1313
render={d => d.entries.matches[0].items.map(id => <Banner id={id} />)}
1414
renderPlaceholder={LoadingIndicator}
15-
spaceName="expertCommunities"
1615
/>
1716
);
1817
}

src/shared/components/tc-communities/communities/cs/FAQ.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export default function Learn() {
1515
query={{
1616
'fields.name': 'CS Community - FAQ',
1717
}}
18-
spaceName="expertCommunities"
1918
/>
2019
);
2120
}

src/shared/components/tc-communities/communities/cs/Home.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export default function Home() {
77
query={{
88
'fields.name': 'CS Community - Home',
99
}}
10-
spaceName="expertCommunities"
1110
/>
1211
);
1312
}

src/shared/components/tc-communities/communities/cs/Learn.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export default function Home() {
77
query={{
88
'fields.name': 'CS Community - Learn',
99
}}
10-
spaceName="expertCommunities"
1110
/>
1211
);
1312
}

src/shared/components/tc-communities/communities/zurich/Catalog.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default function Catalog() {
77
query={{
88
'fields.name': 'Zurich Community - Catalog',
99
}}
10+
spaceName="zurich"
1011
/>
1112
);
1213
}

src/shared/components/tc-communities/communities/zurich/ChallengeListingBanner.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default function ChallengeListingBanner() {
1212
}}
1313
render={d => d.entries.matches[0].items.map(id => <Banner id={id} />)}
1414
renderPlaceholder={LoadingIndicator}
15+
spaceName="zurich"
1516
/>
1617
);
1718
}

src/shared/components/tc-communities/communities/zurich/FAQ.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default function Learn() {
1515
query={{
1616
'fields.name': 'Zurich Community - FAQ',
1717
}}
18+
spaceName="zurich"
1819
/>
1920
);
2021
}

src/shared/components/tc-communities/communities/zurich/Home.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default function Home() {
77
query={{
88
'fields.name': 'Zurich Community - Home',
99
}}
10+
spaceName="zurich"
1011
/>
1112
);
1213
}

src/shared/components/tc-communities/communities/zurich/Learn.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default function Home() {
77
query={{
88
'fields.name': 'Zurich Community - Learn',
99
}}
10+
spaceName="zurich"
1011
/>
1112
);
1213
}

0 commit comments

Comments
 (0)