feat(bsr): fetch BSR.xlsx from Dropbox instead of local file

- Rewrite api/fetch-bsr.ts to proxy BSR.xlsx from the Dropbox URL,
  matching the same pattern as fetch-buybox.ts and other data sources
- Add /api/fetch-bsr proxy in vite.config.ts for local dev

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
christian.vidal
2026-03-02 18:37:39 +01:00
co-authored by Claude Sonnet 4.6
parent ce13d17eda
commit 17a3df9fb3
2 changed files with 35 additions and 18 deletions
+6
View File
@@ -44,6 +44,12 @@ export default defineConfig(({ mode }) => {
changeOrigin: true,
rewrite: () => '',
followRedirects: true
},
'/api/fetch-bsr': {
target: 'https://www.dropbox.com/scl/fi/r32r9x6r7bvgg6ckiaowk/BSR.xlsx?rlkey=vka50xyhc637riq901qo5bk16&st=y6ys2oz8&dl=1',
changeOrigin: true,
rewrite: () => '',
followRedirects: true
}
}
},