.npmrc or bunfig.toml. Both work; we recommend bunfig.toml for its Bun-specific options.
To configure a registry for a particular npm scope:
bunfig.toml
Your
bunfig.toml can reference environment variables. bun install automatically loads environment variables from .env.local, .env.production, and .env, regardless of NODE_ENV; it does not read .env.development or .env.test. See Environment variables.
bunfig.toml
See
bun install.