HomeComputeFunctionsHow to
Add a custom domain name to a function

Update content

How to add a custom domain to a function

Reviewed on 21 February 2022Published on 21 February 2022

Each function comes with an automatically generated domain on which it is available. However it is possible to assign your own domain name to make it easier to use your functions.

Requirements:
  1. Add a CNAME record pointing to your function’s default URL from the domains dashboard.
  2. Click the Endpoints tab on your Function’s Overview page.
  3. Click + Add a New Endpoint.
  4. Enter your custom domain URL and validate the form.
  5. Connect to your function using your custom domain once you have checked the CNAME and TLS fields.
Note:

Be careful, for now Custom Domains does not support websockets. If you need to use websockets you have to configure them with the original URL.

See Also