We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1d4857 commit 8103ba0Copy full SHA for 8103ba0
apps/execution-service/src/execution/execution.service.ts
@@ -33,13 +33,8 @@ export class ExecutionService {
33
return { success: false, output: 'Unsupported language' };
34
}
35
36
- // Use OS temp directory or project root, not __dirname
37
- const tempDir = path.join(
38
- process.cwd(),
39
- 'temp',
40
- 'sandbox',
41
- `exec_${Date.now()}_${Math.random().toString(36).substring(7)}`,
42
- );
+ const executionId = `exec_${Date.now()}_${Math.random().toString(36).substring(7)}`;
+ const tempDir = path.join('/tmp/leetcode-sandbox', executionId);
43
if (!fsSync.existsSync(tempDir)) {
44
fsSync.mkdirSync(tempDir, { recursive: true });
45
0 commit comments