Config vs Providers for Weeding Website

Hello!
I'm trying to build my weeding website with effect, and I am a bit confused about Config and Providers... Should I just read from config directly like this:
export const sign = Config.string("JWT_SECRET").pipe(
  Effect.map((secret) => new TextEncoder().encode(secret)),
  Effect.flatMap(signToken)
);    

Or is it better if I take a config provider?
I'm trying to centralize the server configuration, so I don't need to write import.meta.env.JWT_SECRET everywhere I want to sign a token
Was this page helpful?