diff --git a/web-wallet/README.md b/web-wallet/README.md index 62c757a747..4c8f57d43f 100644 --- a/web-wallet/README.md +++ b/web-wallet/README.md @@ -48,6 +48,7 @@ VITE_LOCAL_NODE="https://localhost:5173/rusk/" VITE_MAINNET_NODE="" VITE_MIGRATE_CONTRACT="" VITE_MINIMUM_ALLOWED_STAKE=1000 +VITE_MODE_MAINTENANCE=false VITE_RKYV_TREE_LEAF_SIZE=632 VITE_STAKE_CONTRACT="0200000000000000000000000000000000000000000000000000000000000000" VITE_TESTNET_NODE="https://nodes.dusk.network/" diff --git a/web-wallet/src/hooks.js b/web-wallet/src/hooks.js new file mode 100644 index 0000000000..e7cadab7c1 --- /dev/null +++ b/web-wallet/src/hooks.js @@ -0,0 +1,6 @@ +/** @type {import('@sveltejs/kit').Reroute} */ +export function reroute() { + return import.meta.env.VITE_MODE_MAINTENANCE === "true" + ? `${import.meta.env.VITE_BASE_PATH}/maintenance` + : undefined; +} diff --git a/web-wallet/src/routes/maintenance/+page.svelte b/web-wallet/src/routes/maintenance/+page.svelte new file mode 100644 index 0000000000..7732edeba2 --- /dev/null +++ b/web-wallet/src/routes/maintenance/+page.svelte @@ -0,0 +1,54 @@ + + + + +
+

+ Unleash RWA and
+ Decentralized Finance +

+
+ +

+ Dusk web-wallet is undergoing some essential maintenance and will return + soon. Need an alternative? Rusk wallet is our terminal wallet + application. +

+
+
+
+ +
+
+ + diff --git a/web-wallet/vite.config.js b/web-wallet/vite.config.js index 13ee239feb..76c3b98080 100644 --- a/web-wallet/vite.config.js +++ b/web-wallet/vite.config.js @@ -43,6 +43,7 @@ export default defineConfig(({ mode }) => { LOCAL_PROVER_NODE: env.VITE_LOCAL_PROVER_NODE, MAINNET_NODE: env.VITE_MAINNET_NODE, MAINNET_PROVER_NODE: env.VITE_MAINNET_PROVER_NODE, + MODE_MAINTENANCE: env.VITE_MODE_MAINTENANCE, RKYV_TREE_LEAF_SIZE: env.VITE_RKYV_TREE_LEAF_SIZE, STAKE_CONTRACT: env.VITE_STAKE_CONTRACT, TESTNET_NODE: env.VITE_TESTNET_NODE,