Skip to content

Commit

Permalink
chore: pdf env logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Jun 7, 2024
1 parent 90b7999 commit 2562322
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ env:
ENVIRONMENT: "dev"
CARDANO_NETWORK: "sanchonet"
DOMAIN: "dev-sanchonet.govtool.byron.network"
IS_PROPOSAL_DISCUSSION_FORUM_ENABLED: ${{ inputs.isProposalDiscussionForumEnabled == 'enabled' }}

jobs:
deploy:
Expand Down Expand Up @@ -48,6 +47,7 @@ jobs:
SENTRY_IGNORE_API_RESOLUTION_ERROR: "1"
TRAEFIK_LE_EMAIL: "[email protected]"
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
IS_PROPOSAL_DISCUSSION_FORUM_ENABLED: ${{ inputs.isProposalDiscussionForumEnabled == 'enabled' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -73,6 +73,7 @@ jobs:

- name: Deploy app
run: |
echo $IS_PROPOSAL_DISCUSSION_FORUM_ENABLED
make --debug=b all
- name: Reprovision Grafana
Expand Down
1 change: 1 addition & 0 deletions govtool/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ARG VITE_NETWORK_FLAG=0
ARG VITE_SENTRY_DSN
ARG NPMRC_TOKEN
ARG VITE_USERSNAP_SPACE_API_KEY
ARG VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED

ENV NODE_OPTIONS=--max_old_space_size=4096
WORKDIR /src
Expand Down
4 changes: 4 additions & 0 deletions govtool/frontend/src/context/featureFlag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const FeatureFlagContext = createContext({
* @param children - The child components to render.
*/
const FeatureFlagProvider = ({ children }: PropsWithChildren) => {
console.log({

Check failure on line 13 in govtool/frontend/src/context/featureFlag.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
isProposalDiscussionForumEnabled: import.meta.env
.VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED,
});
const value = useMemo(
() => ({
isProposalDiscussionForumEnabled:
Expand Down

0 comments on commit 2562322

Please sign in to comment.