Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IS_OFFLINE has been removed #15

Closed
dhruvbhatia opened this issue Dec 31, 2019 · 3 comments · Fixed by #16
Closed

IS_OFFLINE has been removed #15

dhruvbhatia opened this issue Dec 31, 2019 · 3 comments · Fixed by #16

Comments

@dhruvbhatia
Copy link

The plugin doesn't detect local environments anymore because the IS_OFFLINE flag has been removed. See dherault/serverless-offline#768 (comment)

@KingDarBoja
Copy link

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

@adimoraret
Copy link

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

@KingDarBoja
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants