File tree Expand file tree Collapse file tree 6 files changed +9
-7
lines changed
Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 44
55import webpack from 'webpack' ;
66import TsconfigPathsPlugins from 'tsconfig-paths-webpack-plugin' ;
7- import NodePolyfillPlugin from 'node-polyfill-webpack-plugin' ;
87import webpackPaths from './webpack.paths' ;
98import { dependencies as externals } from '../../release/app/package.json' ;
109
@@ -51,7 +50,6 @@ const configuration: webpack.Configuration = {
5150 } ,
5251
5352 plugins : [
54- new NodePolyfillPlugin ( ) ,
5553 new webpack . EnvironmentPlugin ( {
5654 NODE_ENV : 'production' ,
5755 } ) ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import chalk from 'chalk';
77import { merge } from 'webpack-merge' ;
88import { execSync , spawn } from 'child_process' ;
99import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin' ;
10+ import NodePolyfillPlugin from 'node-polyfill-webpack-plugin' ;
1011import baseConfig from './webpack.config.base' ;
1112import webpackPaths from './webpack.paths' ;
1213import checkNodeEnv from '../scripts/check-node-env' ;
@@ -124,7 +125,7 @@ const configuration: webpack.Configuration = {
124125 sourceType : 'var' ,
125126 } ) ,
126127 ] ) ,
127-
128+ new NodePolyfillPlugin ( ) ,
128129 new webpack . NoEmitOnErrorsPlugin ( ) ,
129130
130131 /**
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
1010import CssMinimizerPlugin from 'css-minimizer-webpack-plugin' ;
1111import { merge } from 'webpack-merge' ;
1212import TerserPlugin from 'terser-webpack-plugin' ;
13+ import NodePolyfillPlugin from 'node-polyfill-webpack-plugin' ;
1314import baseConfig from './webpack.config.base' ;
1415import webpackPaths from './webpack.paths' ;
1516import checkNodeEnv from '../scripts/check-node-env' ;
@@ -110,7 +111,7 @@ const configuration: webpack.Configuration = {
110111 NODE_ENV : 'production' ,
111112 DEBUG_PROD : false ,
112113 } ) ,
113-
114+ new NodePolyfillPlugin ( ) ,
114115 new MiniCssExtractPlugin ( {
115116 filename : 'style.css' ,
116117 } ) ,
Original file line number Diff line number Diff line change 4646 "start:main" : " cross-env NODE_ENV=development electronmon -r ts-node/register/transpile-only ." ,
4747 "start:preload" : " cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.preload.dev.ts" ,
4848 "start:renderer" : " cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts" ,
49- "test" : " jest"
49+ "test" : " jest" ,
50+ "clean" : " ts-node ./.erb/scripts/clean.js"
5051 },
5152 "browserslist" : [],
5253 "prettier" : {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { Web3Auth } from '@web3auth/modal';
1010import Dashboard from './pages/Dashboard' ;
1111import Train from './pages/Train' ;
1212import { WalletContextProvider } from './context/walletContext' ;
13- import Faucet from './pages/faucet ' ;
13+ import Faucet from './pages/Faucet ' ;
1414import { CONFIG } from './config' ;
1515
1616export default function App ( ) {
@@ -65,6 +65,7 @@ export default function App() {
6565
6666 const web3AuthInstance = new Web3Auth ( {
6767 clientId : CONFIG . WEB3_AUTH_CLIENT_ID ,
68+ web3AuthNetwork : 'cyan' ,
6869 chainConfig : {
6970 chainNamespace : 'eip155' ,
7071 chainId : `0x${ chains [ 0 ] . id . toString ( 16 ) } ` ,
Original file line number Diff line number Diff line change 11export const CONFIG = {
22 WEB3_AUTH_CLIENT_ID :
3- 'BBs8gwA0_4q7zmg2GoMu-1OuaN58Nj4tJBgiZfjh0Vz0rkym2Iuy96N0TC-wSQUE7wIZv4QINxf59xAICVih6fQ ' ,
3+ 'BLbxOA9fc1ILYPvThN4MIuRLL9QH-BbrXYa9ExH2eOYihHHicQXWDhWQED15gDk_DJX8--22XhLGMyeiAM5nWYk ' ,
44 WEB3_AUTH_RPC :
55 'https://polygon-mumbai.g.alchemy.com/v2/Qsvi2mE7TTt44pEwkojqyqdRb1s0xAQV' ,
66} ;
You can’t perform that action at this time.
0 commit comments