HomeServerlessFunctionsHow to
Add a custom domain name to a function

Update content

How to add a custom domain to a function

Published 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.

Identity and Access Management (IAM):

If you have activated IAM, you may need certain IAM permissions to carry out some actions described on this page. This means:

  • you are the Owner of the Scaleway Organization in which the actions will be carried out, or
  • you are an IAM user of the Organization, with a policy granting you the necessary permission sets
  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.

    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