How to use env in middleware?

How to use env() in the middleware outside the module.exports like the screenshot ?
./middlewares/sentry/index.js

You can access them with process.env.VARIABLE_NAME

2 Likes