#sagar_88536

1 messages · Page 1 of 1 (latest)

livid vaultBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

floral marsh
#

Hello

#

What credentials are you trying to access and what issue are you running into exactly?

north nimbus
#

i want to set some credentials to .env file and not able to access in any react file

#

which i created a stripe app referring the documentation

floral marsh
#

These are sensitive credentials?

north nimbus
#

yes

floral marsh
#

Hmm well you shouldn't really have sensitive credentials client-side so I don't really understand your use-case in that case.

#

What are you trying to do exactly?

north nimbus
#

now worries i need to know about the constants in app.json

#

i got the point and it is working for now
is there any limit to set the constants

floral marsh
#

You store those constants in any TSX file and then import them

#

No limit afaik, no.

north nimbus
#

okay thanks
also i want to know a bit about the external test of application some routes are not working in external test app but same routes are workin fine in the development environment

floral marsh
#

Going to need more details on what "not working" means. Do you see a specific error?

north nimbus
#

for first it was a cors error which i solved but not it is giving the Cannot read properties of undefined (reading 'constants')
after i set the constants

floral marsh
#

Okay well that is a bug in your code where it isn't able to read your variable.

#

Most likely an issue with the import

north nimbus
#

it mainly imported from const App = ({ userContext, environment }) => { } i guess

floral marsh
#

There shouldn't really be a difference here in terms of an import between your local environment and test app