Use Transfer state to make the variable available on client. Refer to this article https://medium.com/@iyieldinov/managing-configuration-in-angular-17-ssr-applications-a-seamless-approach-76dfa600c64f