feat(platform): checkpoint current implementation state

This commit is contained in:
2026-04-01 07:42:03 +02:00
parent 3e53471f05
commit 8c5be51251
125 changed files with 10269 additions and 17808 deletions
+13 -2
View File
@@ -45,8 +45,19 @@ const handler = async (req: NextRequest) => {
};
if (process.env["NODE_ENV"] === "development") {
options.onError = ({ path, error }: { path?: string; error: { message: string } }) => {
console.error(`❌ tRPC failed on ${path ?? "<no-path>"}: ${error.message}`);
options.onError = ({
path,
error,
}: {
path?: string;
error: { message: string; code?: string };
}) => {
const label = `tRPC ${path ?? "<no-path>"}`;
if (error.code === "NOT_FOUND") {
console.warn(`⚠️ ${label}: ${error.message}`);
return;
}
console.error(`${label}: ${error.message}`);
};
}