Rendering robuster + sichtbare Fehlermeldung + no-cache

- crossOrigin von Asset-Images entfernt (haeufige Ursache fuer "tainted canvas",
  wodurch der Szenen-Export fehlschlug -> kaputtes Bild)
- toBlob mit Fallback auf toDataURL
- Ladefehler werden jetzt sichtbar im UI angezeigt (statt nur Konsole)
- Frontend mit Cache-Control: no-cache -> kein veraltetes JS/CSS nach git pull

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Guido
2026-08-04 18:58:51 +02:00
parent b95464670a
commit adc0fae93f
4 changed files with 62 additions and 8 deletions

View File

@@ -57,8 +57,14 @@ if (scenePool.length === 0) {
const app = express();
app.use(express.json());
// Statisches Frontend + Assets
app.use(express.static(PUBLIC_DIR));
// Statisches Frontend + Assets.
// no-cache fuers Frontend (HTML/JS/CSS): Browser/Proxy muss revalidieren -> nie altes
// Skript nach einem Update (haeufige Ursache fuer "geht gar nix" nach git pull).
app.use(
express.static(PUBLIC_DIR, {
setHeaders: (res) => res.setHeader('Cache-Control', 'no-cache'),
})
);
app.use('/scenes', express.static(SCENES_DIR));
app.use('/library', express.static(LIBRARY_DIR));
if (existsSync(PANZOOM_DIST)) {