feat(client): show warning when running through rosetta 2

This commit is contained in:
perf3ct
2025-06-11 14:04:42 +00:00
parent 3f5024dc6d
commit 23ce896681
7 changed files with 150 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
import { isRunningUnderRosetta2 } from "../../services/utils.js";
import type { Request, Response } from "express";
function rosettaCheck(req: Request, res: Response) {
res.json({
isRunningUnderRosetta2: isRunningUnderRosetta2()
});
}
export default {
rosettaCheck
};