HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/lesanew/anestetues2/vendor/roots/acorn/src/Roots/Acorn/Assets/Middleware/ViteMiddleware.php
<?php

namespace Roots\Acorn\Assets\Middleware;

use Illuminate\Support\Facades\Vite;

class ViteMiddleware
{
    /**
     * Handle the manifest config.
     *
     * @param  array  $config
     * @return array
     */
    public function handle($config)
    {
        if (! Vite::manifestHash() && ! Vite::isRunningHot()) {
            return $config;
        }

        if (str_ends_with($config['path'], '/build')) {
            return $config;
        }

        return [
            'url' => get_theme_file_uri('public/build'),
            'path' => public_path('build'),
            'bundles' => public_path('build/manifest.json'),
            'assets' => public_path('build/manifest.json'),
        ];
    }
}