An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: redirect on server not found
Andras Bacsaid9fe16a3ee02
diff --git a/app/Http/Livewire/Server/Show.php b/app/Http/Livewire/Server/Show.phpindex 75053cc1aa..025fc82ff5 100644--- a/app/Http/Livewire/Server/Show.php+++ b/app/Http/Livewire/Server/Show.php@@ -13,7 +13,10 @@ class Show extends Componentpublic function mount(){try {- $this->server = Server::ownedByCurrentTeam(['name', 'description', 'ip', 'port', 'user', 'proxy'])->whereUuid(request()->server_uuid)->firstOrFail();+ $this->server = Server::ownedByCurrentTeam(['name', 'description', 'ip', 'port', 'user', 'proxy'])->whereUuid(request()->server_uuid)->first();+ if (is_null($this->server)) {+ return redirect()->route('server.all');+ }} catch (\Throwable $e) {return general_error_handler(err: $e, that: $this);}