From b828f8fa3a3e44e21426a97f4bd3b622ca0e5813 Mon Sep 17 00:00:00 2001 From: Roman Storm Date: Sat, 12 Dec 2020 12:19:11 -0800 Subject: [PATCH] add goerli --- networkConfig.js | 13 ++++++------- nuxt.config.js | 24 +++++++++++++++++++++++- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/networkConfig.js b/networkConfig.js index 14d7fe8..7a164f4 100644 --- a/networkConfig.js +++ b/networkConfig.js @@ -17,21 +17,20 @@ const networkConfig = { }, pollInterval: 60, }, - netId42: { + netId5: { rpcCallRetryAttempt: 15, gasPrices: { instant: 80, fast: 50, standard: 25, low: 8 }, - currencyName: 'kETH', + currencyName: 'gETH', explorerUrl: { - tx: 'https://kovan.etherscan.io/tx/', - address: 'https://kovan.etherscan.io/address/', + tx: 'https://goerli.etherscan.io/tx/', + address: 'https://goerli.etherscan.io/address/', }, - networkName: 'Kovan', + networkName: 'goerli', rpcUrls: { Infura: { name: 'Infura', - url: 'https://kovan.infura.io/v3/9b8f0ddb3e684ece890f594bf1710c88', + url: 'https://goerli.infura.io/v3/da564f81919d40c9a3bcaee4ff44438d', }, - 'POA.network': { name: 'POA.network', url: 'https://kovan.poa.network' }, }, pollInterval: 200, }, diff --git a/nuxt.config.js b/nuxt.config.js index 10646b4..a0040ff 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -78,5 +78,27 @@ export default { }, // Build Configuration (https://go.nuxtjs.dev/config-build) - build: {}, + build: { + /* + ** You can extend webpack config here + */ + extend(config, ctx) { + config.output.publicPath = './_nuxt/' + }, + // splitChunks: { + // commons: false + // } + }, + + router: { + linkActiveClass: '', + linkExactActiveClass: 'is-active', + extendRoutes(routes, resolve) { + routes.push({ + name: 'ipfs-root', + path: '*', + component: resolve(__dirname, 'pages/index.vue'), + }) + }, + }, }