feat: add canvas runtime dependencies to frontend Docker image for Trianglify support

This commit is contained in:
Muhammad Ibrahim
2025-10-28 18:31:55 +00:00
parent 3ce8c02a31
commit e9368d1a95
3 changed files with 7 additions and 10 deletions

View File

@@ -265,11 +265,8 @@ const Layout = ({ children }) => {
pattern.toCanvas(bgCanvasRef.current);
}
} catch (error) {
// Canvas/trianglify not available, skip background generation silently
// Only log in development for debugging
if (import.meta.env.DEV) {
console.warn("Could not generate Trianglify background:", error);
}
// Canvas/trianglify not available, skip background generation
console.warn("Could not generate Trianglify background:", error);
}
};

View File

@@ -81,11 +81,8 @@ const Login = () => {
pattern.toCanvas(canvasRef.current);
}
} catch (error) {
// Canvas/trianglify not available, skip background generation silently
// Only log in development for debugging
if (import.meta.env.DEV) {
console.warn("Could not generate Trianglify background:", error);
}
// Canvas/trianglify not available, skip background generation
console.warn("Could not generate Trianglify background:", error);
}
};