From 2b10fde743d3d34753fed9ee4b9e4809cfe90032 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Mon, 19 Jan 2026 11:51:53 -0800 Subject: [PATCH] Mute unenecessary feature warning error --- .../src/app/api/latest/check-feature-support/route.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/backend/src/app/api/latest/check-feature-support/route.tsx b/apps/backend/src/app/api/latest/check-feature-support/route.tsx index 4f40afcbf..62f9c87e6 100644 --- a/apps/backend/src/app/api/latest/check-feature-support/route.tsx +++ b/apps/backend/src/app/api/latest/check-feature-support/route.tsx @@ -22,7 +22,11 @@ export const POST = createSmartRouteHandler({ body: yupString().defined(), }), handler: async (req) => { - captureError("check-feature-support", new StackAssertionError(`${req.auth?.user?.primaryEmail || "User"} tried to check support of unsupported feature: ${JSON.stringify(req.body, null, 2)}`, { req })); + const featureName = req.body?.feature_name; + const expectedUnsupportedFeatures = ["rsc-handler-signIn"]; + if (!expectedUnsupportedFeatures.includes(featureName)) { + captureError("check-feature-support", new StackAssertionError(`${req.auth?.user?.primaryEmail || "User"} tried to check support of unsupported feature: ${JSON.stringify(req.body, null, 2)}`, { req })); + } return { statusCode: 200, bodyType: "text",