Build Fast, Efficient Experiences with the LWC-Based Template (Pilot)

Develop communities that load quickly and scale well using the Build Your Own (LWC) template. Based on Lightning Web Components (LWC), a programming model that delivers exceptional performance, this lightweight template supports fully custom solutions. The template, now available as a pilot, includes some changes since the previous release.

Where: This change applies to communities accessed through Lightning Experience and Salesforce Classic. The template is available as a developer preview in Developer editions, or as a pilot program in Enterprise, Performance, and Unlimited editions.



We provide the Build Your Own (LWC) template to selected customers through a pilot program that requires agreement to specific terms and conditions. To be nominated to participate in the program, contact Salesforce. Pilot programs are subject to change, and we can’t guarantee acceptance.

Alternatively, you can access a developer preview of the template in Developer editions without signing up for the pilot program. Developer preview participants can create up to 100 sites, whereas pilot participants can create only two.

Regardless of edition, the template isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. We can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features. You can provide feedback and suggestions for the template in the Lightning Web Runtime Communities group in the Trailblazer Community.

Why: Since the previous release, we added support for:
  • An upgraded version of Lightning Locker that supports cross-namespace communication
  • Custom URL paths for unauthenticated sites, meaning no more /s cluttering up your site’s URL—for example,
  • Accessibility features, including screen readers and F6 navigation, which makes it easier to navigate web pages via keyboard
  • Search engine optimization (SEO) by including a sitemap that lets search engines crawl public pages
  • A new HTML Editor component that lets you add and edit custom markup
  • The following @salesforce modules:
    • @salesforce/client
    • @salesforce/customPermission
    • @salesforce/userPermission


Build Your Own (LWC) is a minimal template that provides few components and only the most essential pages. The template is best suited to developers who are comfortable developing Lightning web components and working with Salesforce DX, User Interface API, and Apex.

How: To start using the template, from Setup, in the Quick Find box, enter Communities Settings, and then select Communities Settings. Select Enable the Build Your Own (LWC) template, and save your changes.

After you enable the template, it appears in the community creation wizard.The community creation wizard



For previous developer preview participants, you must remove two old components to ensure that the Home and Error pages render correctly.

In Experience Builder, open the Home page, and delete the community_byo:home component from the Page Structure pane. For the Error page, delete the community_byo:error component.

Page Structure pane