diff --git a/src/commands/dev/dev.js b/src/commands/dev/dev.js index df644802ba5..89e091392e9 100644 --- a/src/commands/dev/dev.js +++ b/src/commands/dev/dev.js @@ -294,7 +294,9 @@ const startPollingForAPIAuthentication = async function (options) { process.env.ONEGRAPH_AUTHLIFY_TOKEN = netlifyGraphJWT process.env.NETLIFY_GRAPH_TOKEN = netlifyGraphJWT } - } else { + } else if (!authlifyTokenId) { + // If there's no `authlifyTokenId`, it's because the user disabled API + // Auth. Delete the config in this case. delete config.netlifyGraphConfig }