Static GitHub Issues

[2033] How to protect sensitive data in server side without share with client?

prev: Open Graph Facebook meta tags - Server error
next: webpackMiddleware configuration

Hi everyone,

I just begun to use nuxt and is not clear to me what part of the code is shared between client and server and what part belong to each side exclusively. So i'm afraid to put some sensitive data like API credentials and things like that in code cause i dont know where this data will be readable only by server. Can someone help me to organize my code in some way that i can guarantee that the sensitive data will be only readable by server and not exposing on client inside some bundle javascript client side code.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1804">#c1804</a>)</em></sub></div>