Skip to content

Commit

Permalink
fix(CLI Onboarding): Do not attempt local fallback during onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrzesik committed Jun 30, 2021
1 parent 2b7154a commit ae5be0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/cli/interactive-setup/deploy.js
Expand Up @@ -166,8 +166,14 @@ module.exports = {
await overrideStdoutWrite(
() => {},
async (originalStdWrite) => {
// This is a hack to disable local fallback for interactive setup
// After https://github.com/serverless/serverless/issues/1720 is addressed
// We can change the approach to deployment in interactive setup and remove this hack
serverless.isLocallyInstalled = true;
await serverless.init();
interactiveOutputPlugin = configurePlugin(serverless, originalStdWrite);
// Remove previously set `isLocallyInstalled` as it was only needed to avoid local fallback in `init()`
delete serverless.isLocallyInstalled;
await serverless.run();
}
);
Expand Down

0 comments on commit ae5be0f

Please sign in to comment.