load the actual env from the server

This commit is contained in:
Saeed Vaziry
2024-02-22 20:30:21 +01:00
parent 9db310a06b
commit 682da0d6d5
7 changed files with 42 additions and 7 deletions

View File

@ -14,11 +14,11 @@ class Env extends Component
public Site $site;
public string $env;
public string $env = 'Loading...';
public function mount(): void
public function loadEnv(): void
{
$this->env = $this->site->env;
$this->env = $this->site->getEnv();
}
public function save(): void