mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
10 lines
302 B
JavaScript
10 lines
302 B
JavaScript
import _ from 'lodash'
|
|
|
|
export default async (options, configuration) => {
|
|
const stage = options.stage || _.get(configuration, 'provider.stage', 'dev')
|
|
if (!configuration.useDotenv) return false
|
|
const { default: loadDotenv } = await import('./load-dotenv.js')
|
|
loadDotenv(stage)
|
|
return true
|
|
}
|