LWC Single Page Application More details here. Demo Architecture How to modify? Add new pages Add new pages to spaPages/tempalates. Edit PAGE_ID_TO_TEMPLATE in spaPage.js. Update configuration Add new page config to SpaController.cls. pageId should be the same as id in PAGE_ID_TO_TEMPLATE.