feat: Ability to change deployment type for nuxtjs

This commit is contained in:
Andras Bacsai
2022-07-08 17:21:23 +02:00
parent 88a62be30c
commit 3a8e5df897
6 changed files with 42 additions and 15 deletions

View File

@@ -48,6 +48,15 @@ export async function getImages(request: FastifyRequest) {
port = '3000'
}
}
if (buildPack === 'nuxtjs') {
if (deploymentType === 'static') {
publishDirectory = 'dist'
port = '80'
} else {
publishDirectory = ''
port = '3000'
}
}
return { baseImage, baseBuildImage, baseBuildImages, baseImages, publishDirectory, port }