Skip to content

Commit

Permalink
Add message for appDir feedback (#41751)
Browse files Browse the repository at this point in the history
This PR adds a message with a link to leave feedback for `appDir` when
the user enables it.
  • Loading branch information
javivelasco committed Oct 24, 2022
1 parent e9684b0 commit 4b8f16c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/next/server/config.ts
Expand Up @@ -42,6 +42,12 @@ const experimentalWarning = execOnce(
`Experimental features are not covered by semver, and may cause unexpected or broken application behavior. ` +
`Use at your own risk.`
)
if (features.includes('appDir')) {
Log.info(
`Thank you for testing \`appDir\` please leave your feedback at https://nextjs.link/app-feedback`
)
}

console.warn()
}
)
Expand Down
6 changes: 6 additions & 0 deletions test/e2e/app-dir/app-static.test.ts
Expand Up @@ -358,4 +358,10 @@ describe('app-dir static/dynamic handling', () => {

expect(secondDate).not.toBe(initialDate)
})

it('should show a message to leave feedback for `appDir`', async () => {
expect(next.cliOutput).toContain(
`Thank you for testing \`appDir\` please leave your feedback at https://nextjs.link/app-feedback`
)
})
})

0 comments on commit 4b8f16c

Please sign in to comment.