Skip to content

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.

Temporary disable cdn services list

Andras Bacsai281787546111
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index bc73b39685..bfff8098ac 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -433,7 +433,7 @@ function sslip(Server $server)
function getServiceTemplates()
{
- if (isDev()) {
+ if (!isDev()) {
$services = File::get(base_path('templates/service-templates.json'));
$services = collect(json_decode($services))->sortKeys();
} else {
@@ -448,13 +448,6 @@ function getServiceTemplates()
$services = collect([]);
}
}
- // $version = config('version');
- // $services = $services->map(function ($service) use ($version) {
- // if (version_compare($version, data_get($service, 'minVersion', '0.0.0'), '<')) {
- // $service->disabled = true;
- // }
- // return $service;
- // });
return $services;
}
diff --git a/config/constants.php b/config/constants.php
index 7bab10a561..54c4513108 100644
--- a/config/constants.php
+++ b/config/constants.php
@@ -19,7 +19,9 @@ return [
],
],
'services' => [
- 'official' => 'https://cdn.coollabs.io/coolify/service-templates.json',
+ // Temporary disabled until cache is implemented
+ // 'official' => 'https://cdn.coollabs.io/coolify/service-templates.json',
+ 'official' => 'https://raw.githubusercontent.com/coollabsio/coolify/main/templates/service-templates.json',
],
'limits' => [
'trial_period' => 0,