@php $isProduction = app()->environment('production'); $manifestPath = $isProduction ? '../public_html/build/manifest.json' : public_path('build/manifest.json'); @endphp @if ($isProduction && file_exists($manifestPath)) @php $manifest = json_decode(file_get_contents($manifestPath), true); @endphp @else @viteReactRefresh @vite(['resources/js/app.js', 'resources/css/app.css']) @endif @yield('head')