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.

changes for demo

Andras Bacsai8927e8127441
diff --git a/src/routes/applications/[id]/index.svelte b/src/routes/applications/[id]/index.svelte
index ca20146f3a..35af22c4dd 100644
--- a/src/routes/applications/[id]/index.svelte
+++ b/src/routes/applications/[id]/index.svelte
@@ -57,7 +57,7 @@
let previews = application.settings.previews;
let dualCerts = application.settings.dualCerts;
- if (browser && window.location.hostname === 'demo.coolify.io') {
+ if (browser && window.location.hostname === 'demo.coolify.io' && !application.fqdn) {
application.fqdn = `http://${cuid()}.demo.coolify.io`;
}
diff --git a/src/routes/services/[id]/index.svelte b/src/routes/services/[id]/index.svelte
index ab6f87a5d5..7e4a4eb95e 100644
--- a/src/routes/services/[id]/index.svelte
+++ b/src/routes/services/[id]/index.svelte
@@ -44,7 +44,7 @@
export let isRunning;
export let readOnly;
- if (browser && window.location.hostname === 'demo.coolify.io') {
+ if (browser && window.location.hostname === 'demo.coolify.io' && !service.fqdn) {
service.fqdn = `http://${cuid()}.demo.coolify.io`;
}
</script>