diff --git a/package.json b/package.json
index bb3d05617..427c93281 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "coolify",
"description": "An open-source & self-hostable Heroku / Netlify alternative.",
- "version": "2.3.0",
+ "version": "2.3.1",
"license": "AGPL-3.0",
"scripts": {
"dev": "docker-compose -f docker-compose-dev.yaml up -d && cross-env NODE_ENV=development & svelte-kit dev",
diff --git a/src/lib/buildPacks/common.ts b/src/lib/buildPacks/common.ts
index 0fa4f936a..62b7840ce 100644
--- a/src/lib/buildPacks/common.ts
+++ b/src/lib/buildPacks/common.ts
@@ -102,12 +102,9 @@ export const setDefaultConfiguration = async (data) => {
else if (buildPack === 'php') port = 80;
else if (buildPack === 'python') port = 8000;
}
- if (template) {
- if (!installCommand) installCommand = template?.installCommand || 'yarn install';
- if (!startCommand) startCommand = template?.startCommand || 'yarn start';
- if (!buildCommand) buildCommand = template?.buildCommand || null;
- }
-
+ if (!installCommand) installCommand = template?.installCommand || 'yarn install';
+ if (!startCommand) startCommand = template?.startCommand || 'yarn start';
+ if (!buildCommand) buildCommand = template?.buildCommand || null;
if (!publishDirectory) publishDirectory = template?.publishDirectory || null;
if (baseDirectory) {
if (!baseDirectory.startsWith('/')) baseDirectory = `/${baseDirectory}`;
diff --git a/src/routes/applications/[id]/secrets/_BatchSecrets.svelte b/src/routes/applications/[id]/secrets/_BatchSecrets.svelte
index 38af130c9..8d0a65aee 100644
--- a/src/routes/applications/[id]/secrets/_BatchSecrets.svelte
+++ b/src/routes/applications/[id]/secrets/_BatchSecrets.svelte
@@ -30,7 +30,7 @@
await Promise.all(
batchSecretsPairs.map(({ name, value, isNew }) =>
- limit(() => saveSecret({ name, value, applicationId: id, isNew, dispatch }))
+ limit(() => saveSecret({ name, value, applicationId: id, isNew }))
)
);
batchSecrets = '';
@@ -39,8 +39,8 @@
Paste .env file
-