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.

fix: Default configuration

Andras Bacsaid28433ee643e
diff --git a/src/lib/buildPacks/common.ts b/src/lib/buildPacks/common.ts
index 0fa4f936a7..62b7840ce6 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}`;