How to access .env variables

Hello, is there a way NOT to this inside webpack.config.js ? I mean I only want to reach CLIENT_FRONTEND_URL and CLIENT_PREVIEW_SECRET from .env file directly or is there any workaround not to use webpack.config.js?

1 Like