You don't need the next/env package in Next.js v15. It loads your env files automatically.
To know how to use environment variables in Next 15, you can check my article on using environment variables in next js, which describes the correct way to set up environment files and variables, and all the possible things that could go wrong including reasons why your variables could be undefined.
Some of the possible culprits are: