refactor: simplified data loading with direct fetch endpoint

This commit is contained in:
Christian Vidal Wolf
2026-01-17 11:12:39 +01:00
parent 9d2d115bd2
commit 84d0291360
5 changed files with 122 additions and 207 deletions
+3 -3
View File
@@ -9,10 +9,10 @@ export default defineConfig(({ mode }) => {
port: 3000,
host: '0.0.0.0',
proxy: {
'/api/dropbox': {
target: 'https://www.dropbox.com',
'/api/fetch-data': {
target: 'https://www.dropbox.com/scl/fi/b9zxn4z5i7sxwfakk5g5y/Amazon-Sell-Out-2023-2025.csv?rlkey=uoto6v0mm99py8nszy8ldtez8&st=pzn1zkrg&dl=1',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/dropbox/, ''),
rewrite: () => '', // Replace entire path with empty string (target has full URL)
followRedirects: true
}
}