Fix: Update Dropbox sharing link to the new version provided by the user. Restores auto-load functionality in both dev and production.

This commit is contained in:
Christian Vidal Wolf
2026-04-23 12:50:40 +02:00
parent f6ef573f3a
commit 1c3da9024c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export default async function handler(req, res) {
} }
try { try {
const sharingUrl = 'https://www.dropbox.com/scl/fi/8qbl7uoigtfu5x1nn8wvm/Data-Matrix.xlsx?rlkey=s6rkwa2bjrx9gh442gw6w40uk&dl=1'; const sharingUrl = 'https://www.dropbox.com/scl/fi/usa8me7ywgylrij2bt6hj/Data-Matrix.xlsx?rlkey=tsec8csrhye54u1fdvk15ped1&dl=1';
const upstream = await fetch(sharingUrl, { const upstream = await fetch(sharingUrl, {
method: 'GET', method: 'GET',
headers: { headers: {
+1 -1
View File
@@ -75,7 +75,7 @@ export default function App() {
if (isDev) { if (isDev) {
const cacheBuster = `t_${Date.now()}`; const cacheBuster = `t_${Date.now()}`;
const fileUrl = `/dropbox-file/scl/fi/8qbl7uoigtfu5x1nn8wvm/Data-Matrix.xlsx?rlkey=s6rkwa2bjrx9gh442gw6w40uk&dl=1&${cacheBuster}=${Date.now()}`; const fileUrl = `/dropbox-file/scl/fi/usa8me7ywgylrij2bt6hj/Data-Matrix.xlsx?rlkey=tsec8csrhye54u1fdvk15ped1&dl=1&${cacheBuster}=${Date.now()}`;
console.log('Fetching Data-Matrix.xlsx from Dropbox (hard refresh)...'); console.log('Fetching Data-Matrix.xlsx from Dropbox (hard refresh)...');
const response = await fetch(fileUrl, { cache: 'no-store' }); const response = await fetch(fileUrl, { cache: 'no-store' });
if (!response.ok) throw new Error(`HTTP ${response.status}`); if (!response.ok) throw new Error(`HTTP ${response.status}`);