Write a simple JS program that can be run with Bun. It should read three different env vars MANUAL, DOTENV, LOCAL, which are read from manual env vars, .env and .env.local files respectively, and prints them on console in order. So for example, having the following env files:
Description
Write a simple JS program that can be run with Bun. It should read three different env vars
MANUAL
,DOTENV
,LOCAL
, which are read from manual env vars,.env
and.env.local
files respectively, and prints them on console in order. So for example, having the following env files:When we run
it will print
Suggested resources
https://bun.sh/docs/runtime/env