( body: T, context: FunctionRouteExecutionContext, init?: ResponseInit )
| 881 | } |
| 882 | |
| 883 | async function functionJsonResponse<T>( |
| 884 | body: T, |
| 885 | context: FunctionRouteExecutionContext, |
| 886 | init?: ResponseInit |
| 887 | ) { |
| 888 | return NextResponse.json( |
| 889 | await compactFunctionRouteBody( |
| 890 | { |
| 891 | ...body, |
| 892 | largeValueKeys: context.largeValueKeys, |
| 893 | fileKeys: context.fileKeys, |
| 894 | }, |
| 895 | context |
| 896 | ), |
| 897 | init |
| 898 | ) |
| 899 | } |
| 900 | |
| 901 | async function maybeExportSandboxFileToWorkspace(args: { |
| 902 | authUserId: string |
no test coverage detected