Commit 413ecb64 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Config vite unicaen vue

parent bce25408
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
@@ -3,11 +3,11 @@
$hostUrl = $_ENV['DEV_VITE_URL'] ?? null;

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

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