fix: Get KRK: inline swap widget for local dev, Uniswap link for production (#136)
- Add `VITE_ENABLE_LOCAL_SWAP` env var to config.ts (defaults false) - Create LocalSwapWidget.vue: inline ETH→KRK swap (wrap→approve→exactInputSingle) - GetKrkView.vue: show LocalSwapWidget when VITE_ENABLE_LOCAL_SWAP=true, Uniswap link otherwise - docker-compose.yml: set VITE_ENABLE_LOCAL_SWAP=true for webapp service Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9341673a1a
commit
bce4059de9
4 changed files with 346 additions and 41 deletions
|
|
@ -131,6 +131,7 @@ services:
|
|||
environment:
|
||||
- CHOKIDAR_USEPOLLING=1
|
||||
- GIT_BRANCH=${GIT_BRANCH:-}
|
||||
- VITE_ENABLE_LOCAL_SWAP=true
|
||||
expose:
|
||||
- "5173"
|
||||
ports:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue