diff --git a/src/utils/init/utils.ts b/src/utils/init/utils.ts index 55360759a57..d2a67faf9e4 100644 --- a/src/utils/init/utils.ts +++ b/src/utils/init/utils.ts @@ -113,6 +113,13 @@ export const getBuildSettings = async ({ log() } + const frameworkName = setting.framework?.name + if (frameworkName) { + log(`We detected that you're using ${formatTitle(frameworkName)}. Below are recommended build settings.`) + log('For each setting, press Enter to accept the default or provide your own value.') + log() + } + const { baseDir, buildCmd, buildDir } = await inquirer.prompt<{ baseDir?: string | undefined buildCmd: string diff --git a/tests/integration/commands/init/init.test.ts b/tests/integration/commands/init/init.test.ts index 694bb7a7d6b..e2e4371f4ca 100644 --- a/tests/integration/commands/init/init.test.ts +++ b/tests/integration/commands/init/init.test.ts @@ -392,7 +392,9 @@ describe.concurrent('commands/init', () => { handleQuestions(childProcess, initQuestions) - await childProcess + const { stdout } = await childProcess + + t.expect(stdout).toContain("We detected that you're using Next.js. Below are recommended build settings.") await assertNetlifyToml(t, builder.directory, { command, functions: defaultFunctionsDirectory, publish }) })