diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 34d56c4..4f37495 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -58,10 +58,10 @@ protected function registerElixirLinks() if (config('server-push.autolink_elixir')) { $revPath = public_path().'/build/rev-manifest.json'; if (file_exists($revPath)) { - $revMap = json_decode($revPath, true); + $revMap = json_decode(file_get_contents($revPath), true); if ($revMap) { foreach (array_values($revMap) as $path) { - $instance->queueResource('/'.ltrim($path, '/')); + $instance->queueResource('/build/'.ltrim($path, '/')); } } }