Skip to content

Commit 444ddff

Browse files
Florian-MtFlorian Monfortserhalp
authored
fix: skip framework detection for deploy only command (#7229)
Co-authored-by: Florian Monfort <[email protected]> Co-authored-by: Philippe Serhal <[email protected]>
1 parent fd28f48 commit 444ddff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/deploy/deploy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,6 @@ export const deploy = async (options: DeployOptionValues, command: BaseCommand)
805805
const { workingDir } = command
806806
const { api, site, siteInfo } = command.netlify
807807
const alias = options.alias || options.branch
808-
const settings = await detectFrameworkSettings(command, 'build')
809808

810809
command.setAnalyticsPayload({ open: options.open, prod: options.prod, json: options.json, alias: Boolean(alias) })
811810

@@ -859,6 +858,7 @@ export const deploy = async (options: DeployOptionValues, command: BaseCommand)
859858
let results = {} as Awaited<ReturnType<typeof prepAndRunDeploy>>
860859

861860
if (options.build) {
861+
const settings = await detectFrameworkSettings(command, 'build')
862862
await handleBuild({
863863
packagePath: command.workspacePackage,
864864
cachedConfig: command.netlify.cachedConfig,

0 commit comments

Comments
 (0)