Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How can I use environment variables? #89

Open
josebruno2020 opened this issue Feb 10, 2025 · 0 comments
Open

Question: How can I use environment variables? #89

josebruno2020 opened this issue Feb 10, 2025 · 0 comments
Labels
question Further information is requested

Comments

@josebruno2020
Copy link

What are you trying to accomplish? Please describe.
Helo, I'm building a carrier service, and I would like to know how to use environment variables in a NodeJs vtex-app.

What have you tried so far?
I tried to use dotenv, but with no success. I also tried to follow this tutorial, but also don't work.

Additional info
when I tried to do this:

    const token = process.env.TOKEN

    console.info(process.env)

    console.info(`TOKEN: ${token}`)

I received this message in my console:
Image

Account Workspace
stoneentregaspartnerbr local
@josebruno2020 josebruno2020 added the question Further information is requested label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant