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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: Build log
Andras Bacsai8232a7468bbb
diff --git a/src/lib/components/common.ts b/src/lib/components/common.tsindex 96ae8fb520..f6d0f232c1 100644--- a/src/lib/components/common.ts+++ b/src/lib/components/common.ts@@ -37,3 +37,9 @@ export function dashify(str: string, options?: any): string {.replace(/-{2,}/g, (m) => (options && options.condense ? '-' : m)).toLowerCase();}++export function changeQueryParams(buildId) {+ const queryParams = new URLSearchParams(window.location.search);+ queryParams.set('buildId', buildId);+ return history.pushState(null, null, '?' + queryParams.toString());+}diff --git a/src/routes/applications/[id]/__layout.svelte b/src/routes/applications/[id]/__layout.svelteindex 7fc969e0d0..7b997fae4b 100644--- a/src/routes/applications/[id]/__layout.svelte+++ b/src/routes/applications/[id]/__layout.svelte@@ -88,7 +88,6 @@try {const { buildId } = await post(`/applications/${id}/deploy.json`, { ...application });toast.push('Deployment queued.');- console.log($page.url);if ($page.url.pathname.startsWith(`/applications/${id}/logs/build`)) {return window.location.assign(`/applications/${id}/logs/build?buildId=${buildId}`);} else {diff --git a/src/routes/applications/[id]/logs/build/index.svelte b/src/routes/applications/[id]/logs/build/index.svelteindex d50eecd3ba..c84f847091 100644--- a/src/routes/applications/[id]/logs/build/index.svelte+++ b/src/routes/applications/[id]/logs/build/index.svelte@@ -21,7 +21,7 @@<script lang="ts">import { page } from '$app/stores';- import { dateOptions, getDomain } from '$lib/components/common';+ import { changeQueryParams, dateOptions, getDomain } from '$lib/components/common';import BuildLog from './_BuildLog.svelte';import { get } from '$lib/api';@@ -79,11 +79,9 @@noMoreBuilds = true;}}- async function loadBuild(build) {+ function loadBuild(build) {buildId = build;- const queryParams = new URLSearchParams(window.location.search);- queryParams.set('buildId', buildId);- return history.pushState(null, null, '?' + queryParams.toString());+ return changeQueryParams(buildId);}</script>