typed config

This commit is contained in:
robert dennis
2026-10-12 05:18:57 -04:00
parent 8810ae5a78
commit bb0e915fde
35 changed files with 94 additions and 91 deletions
+4 -1
View File
@@ -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, '/'),
];
}