diff --git a/src/Frontend/Compiler/JsCompiler.php b/src/Frontend/Compiler/JsCompiler.php index 79f1a3df17..5ff680f293 100644 --- a/src/Frontend/Compiler/JsCompiler.php +++ b/src/Frontend/Compiler/JsCompiler.php @@ -58,7 +58,7 @@ protected function save(string $file, array $sources): bool $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);