Update stock fetch to use Dropbox URL for Item Availability

This commit is contained in:
Christian Vidal Wolf
2026-02-03 08:55:45 +01:00
parent ceb389cfb0
commit c4ad999619
2 changed files with 19 additions and 27 deletions
+2 -2
View File
@@ -170,8 +170,8 @@ const App: React.FC = () => {
const handleStockFetch = useCallback(async () => {
try {
console.log('[App] Fetching stock from /Item Availability.xlsx...');
const response = await fetch('/Item Availability.xlsx');
console.log('[App] Fetching stock from /api/fetch-stock...');
const response = await fetch('/api/fetch-stock');
if (!response.ok) throw new Error(`Failed to fetch stock: ${response.status}`);
const buffer = await response.arrayBuffer();