In general, there is a cool solution. 1. Variables on the server side are transmitted as needed and at the time of the build of the nextjs server side they are available -> we make the upper-level components server-side (without using 'use client') -> we take the necessary variables from the environment and drill our component in which we already set the values of the inputs on the client or in another way