diff --git a/app/Livewire/Server/New/ByHetzner.php b/app/Livewire/Server/New/ByHetzner.php index ca5c588f8..b7cf18b0d 100644 --- a/app/Livewire/Server/New/ByHetzner.php +++ b/app/Livewire/Server/New/ByHetzner.php @@ -299,9 +299,9 @@ private function getCpuVendorInfo(array $serverType): ?string } elseif (str_starts_with($name, 'cpx')) { return 'AMD EPYC™'; } elseif (str_starts_with($name, 'cx')) { - return 'Intel® Xeon®'; + return 'Intel®/AMD'; } elseif (str_starts_with($name, 'cax')) { - return 'Ampere® Altra®'; + return 'Ampere®'; } return null; diff --git a/app/Services/HetznerService.php b/app/Services/HetznerService.php index aa6de3897..dd4d6e631 100644 --- a/app/Services/HetznerService.php +++ b/app/Services/HetznerService.php @@ -88,7 +88,14 @@ public function getImages(): array public function getServerTypes(): array { - return $this->requestPaginated('get', '/server_types', 'server_types'); + $types = $this->requestPaginated('get', '/server_types', 'server_types'); + + // Filter out entries where "deprecated" is explicitly true + $filtered = array_filter($types, function ($type) { + return ! (isset($type['deprecated']) && $type['deprecated'] === true); + }); + + return array_values($filtered); } public function getSshKeys(): array diff --git a/resources/views/livewire/server/new/by-hetzner.blade.php b/resources/views/livewire/server/new/by-hetzner.blade.php index f33136e0e..85dfa9f35 100644 --- a/resources/views/livewire/server/new/by-hetzner.blade.php +++ b/resources/views/livewire/server/new/by-hetzner.blade.php @@ -61,6 +61,7 @@