Skip to content

Commit 6478710

Browse files
committed
remove legacy functions_src conditional
1 parent 7e54623 commit 6478710

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,6 @@ module.exports = {
4444
// return failBuild(`This plugin cannot support apps that manually use next-on-netlify. Uninstall next-on-netlify as a dependency to resolve.`);
4545
// }
4646

47-
const isFunctionsDirectoryCorrect =
48-
FUNCTIONS_SRC !== undefined && path.resolve(FUNCTIONS_SRC) === path.resolve('out_functions')
49-
if (!isFunctionsDirectoryCorrect) {
50-
// to do rephrase
51-
return failBuild(
52-
`You must designate a functions directory named "out_functions" in your netlify.toml or in your app's build settings on Netlify. See docs for more info: https://docs.netlify.com/functions/configure-and-deploy/#configure-the-functions-folder`,
53-
)
54-
}
55-
5647
const nextConfigPath = await findUp('next.config.js')
5748
if (nextConfigPath !== undefined) {
5849
// If the next config exists, fail build if target isnt in acceptableTargets

0 commit comments

Comments
 (0)