client.mjs, server.mjs, process.env

Can someone please explain the use cases for each? I see that process.env in used in src/utils/trpc.ts. Why not use server.mjs there? In server,mjs we do ...clientEnv which means in server.mjs we have all the env variables. Then when should we use client.mjs?
Was this page helpful?