diff --git a/src/Frontend/Compiler/JsCompiler.php b/src/Frontend/Compiler/JsCompiler.php index 79f1a3df1..5ff680f29 100644 --- a/src/Frontend/Compiler/JsCompiler.php +++ b/src/Frontend/Compiler/JsCompiler.php @@ -58,7 +58,7 @@ class JsCompiler extends RevisionCompiler $this->assetsDir->put($file, implode("\n", $output)); - $mapTemp = tempnam(sys_get_temp_dir(), $mapFile); + $mapTemp = tempnam(storage_path('tmp'), $mapFile); $map->save($mapTemp); $this->assetsDir->put($mapFile, file_get_contents($mapTemp)); @unlink($mapTemp);