Commit 5db547dd authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Oubli conf Vite

parent 8017d5d0
Loading
Loading
Loading
Loading
Loading
+12 −1
Changes for config/autoload/unicaen-vue.global.php: 12 added lines, 1 removed line.
Original line number Diff line number Diff line
<?php

$hostUrl = $_ENV['DEV_VITE_URL'] ?? null;

if (!$hostUrl) {
    $sheme = $_ENV['HTTP_X_FORWARDED_PROTO'] ?? $_ENV['REQUEST_SCHEME'] ?? 'http';
    $host = $_ENV['APP_HOST'] ?: 'localhost';
    $port = $_ENV['DEV_VITE_PORT'] ?: 5133;

    $hostUrl = $sheme.'://'.$host.':'.$port;
}


return [
    'unicaen-vue' => [
        'host'        => 'http://localhost:5133',
        'host'        => $hostUrl,
        'hot-loading' => AppAdmin::inDev() ? (AppAdmin::config()['dev']['hot-loading'] ?? false) : false,
        'dist-path'   => 'public/dist',
        'dist-url'    => 'dist',