Skip to content

How do you set a custom config values for an es6 import? #893

@andersr

Description

@andersr

It appears the instructions only provide an example for how to set a custom config when using a commonjs import, ie

require('dotenv').config({ foo: "bar" })

However, it is not clear how to do the same for an ES6 import. How do I set a custom config for this type of import?

import 'dotenv/config'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions