99x / serverless-dynamodb-client

Serverless Dynamodb Client to automatically switch between AWS and Local instances
MIT License
74 stars 19 forks source link

IS_OFFLINE has been removed #15

Closed dhruvbhatia closed 2 years ago

dhruvbhatia commented 4 years ago

The plugin doesn't detect local environments anymore because the IS_OFFLINE flag has been removed. See https://github.com/dherault/serverless-offline/issues/768#issue-476929826

KingDarBoja commented 4 years ago

We need to rely on something like serverless-dotenv-plugin in the meantime.

adimoraret commented 4 years ago

so the only workaround for now is to manually set the process.env.IS_OFFLINE to true before running sls offline start ?

KingDarBoja commented 4 years ago

@adimoraret Yes, it is required. I think there is some work in progress at this serverless-dotenv-plugin PR to detect a shared env file with basic env variables like offline before starting any other serverless plugin.