You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support disabling of Netlify function generation (#240)
* feat: support disabling of Netlify function generation
* chore: cleanup functions if they are disabled
* fix: correct test name
* chore: test timeout
* chore: re-word
@@ -32,64 +40,54 @@ export async function onPreBuild({
32
40
utils,
33
41
netlifyConfig,
34
42
}): Promise<void>{
35
-
// print a helpful message if the publish dir is misconfigured
43
+
// Print a helpful message if the publish dir is misconfigured
36
44
if(!PUBLISH_DIR||process.cwd()===PUBLISH_DIR){
37
45
utils.build.failBuild(
38
-
`Gatsby sites must publish the public directory, but your site’s publish directory is set to “${PUBLISH_DIR}”. Please set your publish directory to your Gatsby site’s public directory.`,
46
+
`Gatsby sites must publish the "public" directory, but your site’s publish directory is set to “${PUBLISH_DIR}”. Please set your publish directory to your Gatsby site’s "public" directory.`,
39
47
)
40
48
}
41
49
awaitrestoreCache({ utils,publish: PUBLISH_DIR})
42
-
constCACHE_DIR=normalizedCacheDir(PUBLISH_DIR)
43
-
44
-
// Work around Gatsby bug https://github.com/gatsbyjs/gatsby/issues/33262
0 commit comments