Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/utils/init/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion tests/integration/commands/init/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
})
Expand Down
Loading