1

I have a Google Cloud Function triggered via HTTP.

The trigger URL is in the format:

https://europe-west1-PROJECT-NAME.cloudfunctions.net/FUNCTION-NAME

This works fine, however I need to beable to access it at:

https://europe-west1-PROJECT-NAME.cloudfunctions.net/

Is there a way of doing this? I have not been able to find a definitive answer for this via their documentation or Google Search.

Thanks

1 Answer 1

1

This is not possible. You must use the URL that was assigned to your function at the time of deployment. You can't rewrite the URL on the hostname/domain that's given to your project.

You can, however, use Firebase Hosting to proxy URLs to Cloud Functions in the same project. You will need to use the domain given to you by Firebase Hosting, or bring your own domain.

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.