Skip to content

Commit

Permalink
change env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 committed Jan 16, 2024
1 parent aadbb8e commit aec7737
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN yarn && yarn build
FROM node:20-alpine

# Set environment variable
ENV REACT_APP_MODE=production
ENV NODE_ENV=production

WORKDIR /polkamask

Expand Down
5 changes: 3 additions & 2 deletions packages/dapp/src/util/consts.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const SNAP_VERSION = '>=0.1.13';
const SNAP_VERSION = '>=0.1.14';
const LOCAL_SNAP_ID = 'local:http://localhost:8080';
const NPM_SNAP_ID = 'npm:@polkagate/snap';

export const DEFAULT_SNAP_ORIGIN = process.env.REACT_APP_MODE === 'development' ? LOCAL_SNAP_ID : NPM_SNAP_ID;
export const DEFAULT_SNAP_ORIGIN = process.env.NODE_ENV === 'development' ? LOCAL_SNAP_ID : NPM_SNAP_ID;

console.log('NODE_ENV:',process.env.NODE_ENV)
export const SUPPORTED_SNAPS = {
[DEFAULT_SNAP_ORIGIN]: { version: SNAP_VERSION },
};
Expand Down

0 comments on commit aec7737

Please sign in to comment.