Commit 3b20ce4e authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction pour vue

parent b78bd939
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for config/autoload/unicaen-vue.global.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -5,8 +5,8 @@ $hostUrl = $_ENV['DEV_VITE_URL'] ?? null;

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

    $hostUrl = $scheme . '://' . $host . ':' . $port;