diff --git a/packages/server/src/utils/builders/heroku.ts b/packages/server/src/utils/builders/heroku.ts index 999b5fe61..21442d9ac 100644 --- a/packages/server/src/utils/builders/heroku.ts +++ b/packages/server/src/utils/builders/heroku.ts @@ -16,13 +16,14 @@ export const buildHeroku = async ( application.project.env, ); try { + const builderVersion = env.HEROKU_STACK_VERSION || '24'; const args = [ "build", appName, "--path", buildAppDirectory, "--builder", - "heroku/builder:24", + `heroku/builder:${builderVersion}`, ]; for (const env of envVariables) { @@ -52,13 +53,14 @@ export const getHerokuCommand = ( application.project.env, ); + const builderVersion = env.HEROKU_STACK_VERSION || '24'; const args = [ "build", appName, "--path", buildAppDirectory, "--builder", - "heroku/builder:24", + `heroku/builder:${builderVersion}`, ]; for (const env of envVariables) {