Loading Environment Variables in Effect

I have this package called dotenv, that loads environment variables from
.env
file.

Does Effect have a native way of doing this?
It's only relevant for local.

Usually I have to do:

// ...
import "dotenv/config"; // (i wanna get rid of this)

// ...
NodeClusterShardManagerSocket.layer({ storage: "sql" }).pipe(
    // ...
    Layer.launch,
    NodeRuntime.runMain({ disablePrettyLogger: true })
);
Was this page helpful?