Files and contents visible in dev tools sources

In general, on my site and others on netlify, all code is visible in dev tools source. Is there a way to keep some of that private/hidden? Of course, the HTML file doesn’t matter, but I’m not sure I want everything on the front end visible.

You’re talking about making client-side code private which is not possible, not on Netlify, not anywhere. The biggest of websites have their client-side code visible. If you wan to make something private, you need to find a way to add that functionality server side.

1 Like