feat: Add UK inventory sync from Dropbox

- Create new API endpoint api/fetch-uk-inventory.ts
- Add processUKInventoryExcel function in dataProcessor.ts
- Update handleVendorStockFetch to load PANEU + UK in parallel
- Configure Vite proxy for UK inventory endpoint
- UK stock correctly populates 'uk' field in vendorStockMap
This commit is contained in:
Christian Vidal Wolf
2026-02-02 09:24:49 +01:00
parent ab9ac4f47e
commit e1e6f127be
4 changed files with 159 additions and 9 deletions
+6
View File
@@ -20,6 +20,12 @@ export default defineConfig(({ mode }) => {
changeOrigin: true,
rewrite: () => '',
followRedirects: true
},
'/api/fetch-uk-inventory': {
target: 'https://www.dropbox.com/scl/fi/an1ldjmtej7tbt6fuh2ut/UK-Inventory.xlsx?rlkey=5h8e4st885bggibujk0b1lmm8&st=7vbagnwz&dl=1',
changeOrigin: true,
rewrite: () => '',
followRedirects: true
}
}
},