0

I am stuck here: https://cloud.google.com/tasks/docs/quickstart?hl=ca-ES#add_a_task_to_the_cloud_tasks_queue

Where to put and export the environment variables (PROJECT_ID, LOCATION_ID and QUEUE_ID), because the documentation says I should put them in the code in my sample app but I don't know in which file exactly. I am using NodeJS

export PROJECT_ID=PROJECT_ID // The project ID from above
export LOCATION_ID=LOCATION_ID // The region in which your queue is running
export QUEUE_ID=my-queue // The queue you created above

1

1 Answer 1

1

You'll simply need to set the environment variables depending on your OS.

The export command is meant to be run in a Terminal if using in UNIX bases systems (Linux, MacOS).

If you are using Windows you'll need to make a few more clicks.

The following blog post goes through all the details for all major OSes.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.