Skip to content

Commit

Permalink
fix/epmgcip-143/updating-env-variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Siarhei Balonikau committed Sep 11, 2024
1 parent de438a4 commit 7e7fc91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/contentful-image-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
cd img-region-select-app
echo "REACT_APP_CONTENTFUL_SPACE=${{ secrets.STAGING_CONTENTFUL_SPACE }}" >> .env
echo "REACT_APP_CONTENTFUL_ACCESS_TOKEN=${{ secrets.STAGING_CONTENTFUL_ACCESS_TOKEN }}" >> .env
echo "REACT_APP_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN=${{ secrets.STAGING_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN }}" >> .env
- name: Build
run: |
cd img-region-select-app
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/contentful-image-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
cd img-region-select-app
echo "REACT_APP_CONTENTFUL_SPACE=${{ secrets.CONTENTFUL_SPACE }}" >> .env
echo "REACT_APP_CONTENTFUL_ACCESS_TOKEN=${{ secrets.CONTENTFUL_ACCESS_TOKEN }}" >> .env
echo "REACT_APP_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN=${{ secrets.CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN }}" >> .env
- name: Build
run: |
cd img-region-select-app
Expand Down
3 changes: 2 additions & 1 deletion img-region-select-app/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { createClient } from "contentful";

const client = createClient({
space: process.env.REACT_APP_CONTENTFUL_SPACE || "",
accessToken: process.env.REACT_APP_CONTENTFUL_ACCESS_TOKEN || "",
accessToken:
process.env.REACT_APP_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN || "",
});

export default client;

0 comments on commit 7e7fc91

Please sign in to comment.