Closed dhruvbhatia closed 2 years ago
We need to rely on something like serverless-dotenv-plugin in the meantime.
so the only workaround for now is to manually set the process.env.IS_OFFLINE
to true
before running sls offline start
?
@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.
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