You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errorMessage=`Artifact size (${sizeMB} MB) exceeds the allowed limit of ${limitMB} MB. Make sure you are in the correct directory of your Trigger.dev project. Reach out to us if you are seeing this error consistently.`;
64
-
break;
65
-
default:
66
-
body.data.typesatisfiesnever;
67
-
errorMessage=`Artifact size (${sizeMB} MB) exceeds the allowed limit of ${limitMB} MB`;
61
+
switch(body.data.type){
62
+
case"deployment_context":
63
+
errorMessage=`Artifact size (${sizeMB} MB) exceeds the allowed limit of ${limitMB} MB. Make sure you are in the correct directory of your Trigger.dev project. Reach out to us if you are seeing this error consistently.`;
64
+
break;
65
+
default:
66
+
body.data.typesatisfiesnever;
67
+
errorMessage=`Artifact size (${sizeMB} MB) exceeds the allowed limit of ${limitMB} MB`;
68
+
}
69
+
returnjson(
70
+
{
71
+
error: errorMessage,
72
+
},
73
+
{status: 400}
74
+
);
75
+
}
76
+
case"failed_to_create_presigned_post": {
77
+
logger.error("Failed to create presigned POST",{ error });
78
+
returnjson({error: "Failed to generate artifact upload URL"},{status: 500});
79
+
}
80
+
case"artifacts_bucket_not_configured": {
81
+
logger.error("Artifacts bucket not configured",{ error });
82
+
returnjson({error: "Internal server error"},{status: 500});
0 commit comments