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
I do not see a simple way to differentiate during the build process between a local build (for example with serverless-offline), and a build to be executed on AWS.
Would it be possible to include some type of environment variable to distinguish local and AWS builds?
Best option I dound so far is process.argv.indexOf('offline') === -1, which works but doesn't look optimal to me.
--
Less importantly, serverless options are not passed to the build process (notably the stage). This one is less critical – as it is possible to point from serverless.yml to different configuration files, but still. It would be nice :)