perf(falukant): deploy prebuilt models and release WebGL contexts
All checks were successful
Deploy to production / deploy (push) Successful in 2m19s
All checks were successful
Deploy to production / deploy (push) Successful in 2m19s
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user