Attach User and Settings to my react App #11699
Unanswered
yuval-illumex
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a react app which uses nest.js for the server side and serving of the HTML files.
We want to have a different settings for every deployment, for example google analytics token (different token for staging and production for example).
According to the documentation, We need to inject the token in the Webserver before serving the html file.
However, in the nest.js documentation, we have two options:
I guess it's possible to create an api call "/settings" and get the settings from there, but I think to inject it as part of the serving makes more sense. Am I right? What will be the right approach to inject the data?
Beta Was this translation helpful? Give feedback.
All reactions