Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
338 changes: 338 additions & 0 deletions public/validators-testnet.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/config/config.local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
prestakingStartBlock: 3_023_730,
prestakingEndBlock: 3_028_050,
transitionBlock: 3_032_010,
validatorsApiBase: 'https://validators-api-testnet.nuxt.dev',
validatorsApiBase: '',
validatorsPath: '/api/v1/validators',
stakeEventsEndpoint: 'https://v2.test.nimiqwatch.com/api/v2/staker/ADDRESS/events/restake-grouped',
genesis: {
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
prestakingStartBlock: 3_023_730,
prestakingEndBlock: 3_028_050,
transitionBlock: 3_032_010,
validatorsApiBase: 'https://validators-api-testnet.nuxt.dev',
validatorsApiBase: '',
validatorsPath: '/api/v1/validators',
stakeEventsEndpoint: 'https://v2.test.nimiqwatch.com/api/v2/staker/ADDRESS/events/restake-grouped',
genesis: {
Expand Down
10 changes: 10 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,14 @@ module.exports = {
},
},
}),
// TODO Delete this once BYT-34 is resolved
devServer: {
proxy: (buildName === 'testnet' || buildName === 'local' || process.env.build === 'testnet') ? {
'/api/v1/validators': {
target: 'http://localhost:8081', // Assuming the dev server runs on 8081
pathRewrite: { '^/api/v1/validators': '/validators-testnet.json' },
changeOrigin: true,
},
} : null,
},
};