Skip to content

Commit 370a0b1

Browse files
committed
fix: use local service-templates in dev
1 parent 282ff4e commit 370a0b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bootstrap/helpers/shared.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,11 @@ function sslip(Server $server)
522522

523523
function get_service_templates(bool $force = false): Collection
524524
{
525+
if (isDev()) {
526+
$services = File::get(base_path('templates/service-templates.json'));
527+
528+
return collect(json_decode($services))->sortKeys();
529+
}
525530
if ($force) {
526531
try {
527532
$response = Http::retry(3, 1000)->get(config('constants.services.official'));

0 commit comments

Comments
 (0)