Custom Lightning components are only available for use if you have set a custom Salesforce domain name for your organization. This is required for security reasons and is done by creating a My Domain subdomain. Carry out the following to set up a My Domain subdomain:
- Click on the Setup gear icon, as shown in the following screenshot:
The Setup gear icon is located in the top right-hand area of the main Home page.
- Click the Setup option, as shown in the following screenshot:
- Type the text my domain in the Quick Find search box.
- Click on My Domain, as shown in the following screenshot:
- Enter a domain name in the Choose Your Domain Name textbox.
- Click on Check Availability.
- Click on Register Domain, as shown in the following screenshot:
- Click on Deploy to Users.
- Click on OK to confirm, as shown in the following screenshot:
- In the resulting screen, the final step, My Domain Settings are displayed, as shown in the following screenshot: