Cypress has cypress.config.js. Playwright has playwright.config.ts. Selenium has nothing, because it is a library rather than a framework.
That is not a gap to complain about, it is a design decision you have to make yourself. Here is the shape most teams arrive at.
Keep every environment-specific value in one module.