diff --git a/apps/api/src/lib/buildPacks/common.ts b/apps/api/src/lib/buildPacks/common.ts index f4195e24a..0e188ae36 100644 --- a/apps/api/src/lib/buildPacks/common.ts +++ b/apps/api/src/lib/buildPacks/common.ts @@ -556,7 +556,6 @@ export function checkPnpm(installCommand = null, buildCommand = null, startComma ); } - export async function buildImage({ applicationId, tag, @@ -677,8 +676,6 @@ export async function buildCacheImageWithNode(data, imageForBuild) { secrets, pullmergeRequestId } = data; - - const isPnpm = checkPnpm(installCommand, buildCommand); const Dockerfile: Array = []; Dockerfile.push(`FROM ${imageForBuild}`); diff --git a/apps/api/src/lib/buildPacks/docker.ts b/apps/api/src/lib/buildPacks/docker.ts index 04041b190..c017b4bed 100644 --- a/apps/api/src/lib/buildPacks/docker.ts +++ b/apps/api/src/lib/buildPacks/docker.ts @@ -28,6 +28,7 @@ export default async function (data) { if (secrets.length > 0) { secrets.forEach((secret) => { if (secret.isBuildSecret) { + // TODO: fix secrets if ( (pullmergeRequestId && secret.isPRMRSecret) || (!pullmergeRequestId && !secret.isPRMRSecret) diff --git a/apps/api/src/lib/services/handlers.ts b/apps/api/src/lib/services/handlers.ts index f2f0aafa9..903f53035 100644 --- a/apps/api/src/lib/services/handlers.ts +++ b/apps/api/src/lib/services/handlers.ts @@ -655,7 +655,7 @@ async function startLanguageToolService(request: FastifyRequest) { [id]: { container_name: id, image: config.n8n.image, - volumes: config.n8n, + volumes: config.n8n.volumes, environment: config.n8n.environmentVariables, labels: makeLabelForServices('n8n'), ...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}), diff --git a/apps/api/src/routes/api/v1/handlers.ts b/apps/api/src/routes/api/v1/handlers.ts index cdb115af3..4e877f13c 100644 --- a/apps/api/src/routes/api/v1/handlers.ts +++ b/apps/api/src/routes/api/v1/handlers.ts @@ -26,7 +26,7 @@ export async function cleanupManually(request: FastifyRequest) { } export async function checkUpdate(request: FastifyRequest) { try { - const isStaging = request.hostname === 'staging.coolify.io' + const isStaging = request.hostname === 'staging.coolify.io' || request.hostname === 'arm.coolify.io' const currentVersion = version; const { data: versions } = await axios.get( `https://get.coollabs.io/versions.json?appId=${process.env['COOLIFY_APP_ID']}&version=${currentVersion}` diff --git a/apps/ui/src/routes/applications/[id]/__layout.svelte b/apps/ui/src/routes/applications/[id]/__layout.svelte index 020be0b13..c62c6362c 100644 --- a/apps/ui/src/routes/applications/[id]/__layout.svelte +++ b/apps/ui/src/routes/applications/[id]/__layout.svelte @@ -107,7 +107,7 @@ $status.application.initialLoading = true; try { await del(`/applications/${id}`, { id, force }); - return await goto(`/`, { replaceState: true }); + return await window.location.assign(`/`); } catch (error) { if (error.message.startsWith(`Command failed: SSH_AUTH_SOCK=/tmp/coolify-ssh-agent.pid`)) { forceDelete = true; diff --git a/apps/ui/src/routes/applications/[id]/index.svelte b/apps/ui/src/routes/applications/[id]/index.svelte index 7638491cb..345600284 100644 --- a/apps/ui/src/routes/applications/[id]/index.svelte +++ b/apps/ui/src/routes/applications/[id]/index.svelte @@ -220,7 +220,6 @@ loading = true; try { nonWWWDomain = application.fqdn && getDomain(application.fqdn).replace(/^www\./, ''); - console.log({debug: nonWWWDomain}) if (application.deploymentType) application.deploymentType = application.deploymentType.toLowerCase(); !isBot && diff --git a/apps/ui/src/routes/databases/[id]/__layout.svelte b/apps/ui/src/routes/databases/[id]/__layout.svelte index 453deb675..87d2f219e 100644 --- a/apps/ui/src/routes/databases/[id]/__layout.svelte +++ b/apps/ui/src/routes/databases/[id]/__layout.svelte @@ -77,7 +77,7 @@ $status.database.initialLoading = true; try { await del(`/databases/${database.id}`, { id: database.id, force }); - return await goto('/', { replaceState: true }); + return await window.location.assign('/'); } catch (error) { return errorNotification(error); } finally { diff --git a/apps/ui/src/routes/databases/[id]/logs/index.svelte b/apps/ui/src/routes/databases/[id]/logs/index.svelte index ee5df54ed..0a296487f 100644 --- a/apps/ui/src/routes/databases/[id]/logs/index.svelte +++ b/apps/ui/src/routes/databases/[id]/logs/index.svelte @@ -112,7 +112,7 @@