Roberto286 / paladins_wheelspin

1 stars 1 forks source link

[FE] [ENHANCEMENT] - Implement mocks #14

Open Roberto286 opened 10 months ago

Roberto286 commented 10 months ago

Need to implement mock to make us able to work without having backend running. I've found a way to directly use a vite plugin https://github.com/vbenjs/vite-plugin-mock The idea is to implement this plugin and enable or disable mocks via an environment variable

Roberto286 commented 10 months ago

UPDATE: implemented proxy that retarget http calls to backend so we can use env variables to choose to target localhost or production