Skip to content

Provide a simple way to differentiate between build types #232

@pierreis

Description

@pierreis

-Probably a simple one.

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions