perf(falukant): deploy prebuilt models and release WebGL contexts
All checks were successful
Deploy to production / deploy (push) Successful in 2m19s

This commit is contained in:
Torsten Schulz (local)
2026-09-29 10:50:41 +02:00
parent 138d43604a
commit 55d41c01fd
6 changed files with 71 additions and 25 deletions

View File

@@ -35,8 +35,9 @@ function removeStaleOptimizedModels(outputDir) {
if (!fs.existsSync(outputDir)) {
return;
}
const cleanAllModels = process.env.CLEAN_MODEL_OUTPUT === 'true';
for (const file of fs.readdirSync(outputDir)) {
if (file.endsWith('_opt.glb')) {
if (file.endsWith('_opt.glb') || (cleanAllModels && file.endsWith('.glb'))) {
fs.unlinkSync(path.join(outputDir, file));
}
}