fix: Default configuration
This commit is contained in:
parent
cc348bf0f5
commit
d28433ee64
@ -102,12 +102,9 @@ export const setDefaultConfiguration = async (data) => {
|
|||||||
else if (buildPack === 'php') port = 80;
|
else if (buildPack === 'php') port = 80;
|
||||||
else if (buildPack === 'python') port = 8000;
|
else if (buildPack === 'python') port = 8000;
|
||||||
}
|
}
|
||||||
if (template) {
|
if (!installCommand) installCommand = template?.installCommand || 'yarn install';
|
||||||
if (!installCommand) installCommand = template?.installCommand || 'yarn install';
|
if (!startCommand) startCommand = template?.startCommand || 'yarn start';
|
||||||
if (!startCommand) startCommand = template?.startCommand || 'yarn start';
|
if (!buildCommand) buildCommand = template?.buildCommand || null;
|
||||||
if (!buildCommand) buildCommand = template?.buildCommand || null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!publishDirectory) publishDirectory = template?.publishDirectory || null;
|
if (!publishDirectory) publishDirectory = template?.publishDirectory || null;
|
||||||
if (baseDirectory) {
|
if (baseDirectory) {
|
||||||
if (!baseDirectory.startsWith('/')) baseDirectory = `/${baseDirectory}`;
|
if (!baseDirectory.startsWith('/')) baseDirectory = `/${baseDirectory}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user