Newer Version Available
What Is the Build Your Own (LWR) Template?
The Build Your Own (LWR) template for Experience Cloud lets you develop blazing fast
digital experiences, such as websites, microsites, and portals, using the Lightning Web
Components programming model. Powered by the new Lightning Web Runtime (LWR), this customizable
template delivers unparalleled site performance and improves developer productivity.
Lightning Web Components uses core Web Components standards and provides only what’s necessary to perform well in browsers supported by Salesforce. Because it’s built on code that runs natively in browsers, Lightning Web Components is lightweight, efficient, and easy to learn.
Lightning Web Components also includes Apex and User Interface API support, so you can access Salesforce records, SOSL, and more to provide data-rich experiences for your customers. And the template’s performance features, such as publish-time freezing and HTTP caching, help you build richer experiences to target B2B and B2C markets.
At a high level, the Build Your Own (LWR) template:
- Provides custom URL paths for unauthenticated sites, meaning no more /s cluttering up your site’s URL—for example, https://mycustomdomain.com/mypage.
- Enhances developer productivity. Use Salesforce DX and your preferred editor or development tools to create custom components and themes. Build what you want, your way.
- Supports the development of reusable, robust Lightning web components and themes that follow modern web standards. Most of the code you write is standard JavaScript and HTML, making the model easy to learn.
Example
Let’s say you specialize in building highly customized solutions with your own design
system and component library. With the Build Your Own (LWR) template, you can now remove
Salesforce Lightning Design System (SLDS) and include your own components and design system to
achieve the pixel-perfect site you require.