From 442f9f1d5bc6d31f615956a20d420ba4a5f07cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 17 Jan 2026 14:25:32 -0500 Subject: [PATCH] fix: closes #11606, detect musl and use sass instead --- src/utils.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 55d3b5e793..abc7a92e2a 100644 --- a/src/utils.js +++ b/src/utils.js @@ -42,7 +42,19 @@ utils.secureRandom = function (low, high) { }; utils.getSass = function () { - if (process.platform === 'freebsd') { + // https://github.com/NodeBB/NodeBB/issues/11606 + function isMusl() { + if (process.platform !== 'linux') { + return false; + } + + try { + return !process.report.getReport().header.glibcVersionRuntime; + } catch { + return true; + } + } + if (process.platform === 'freebsd' || isMusl()) { return require('sass'); } try {