mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-03 21:05:45 -05:00
typed config
This commit is contained in:
+4
-1
@@ -149,6 +149,9 @@ class Node extends Model implements Identifiable
|
||||
$allowedMounts[] = $mount->source;
|
||||
}
|
||||
|
||||
$remote = config()->string('app.url');
|
||||
throw_if($remote === '', UnexpectedValueException::class, 'The application URL must not be empty.');
|
||||
|
||||
return [
|
||||
'debug' => false,
|
||||
'uuid' => $this->uuid,
|
||||
@@ -171,7 +174,7 @@ class Node extends Model implements Identifiable
|
||||
],
|
||||
],
|
||||
'allowed_mounts' => $allowedMounts,
|
||||
'remote' => mb_rtrim(JsonValueGuard::nonEmptyString(config('app.url')), '/'),
|
||||
'remote' => mb_rtrim($remote, '/'),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user