I working under a webpack solution and using EJS to render my pages and i want to display the hostname (my-domain.com) in the render by the EJS file and avoid to inject from a all_script.js like file
I've tried things like this and that's actually not worked :
<%= window.location.hostname %>
The expected result would be "my-domain.com"