The CWA is in heavy development
The CWA is still in alpha and not ready for production - some code and implementations are likely to change. If you would like to try out the CWA, please enjoy what we have provided and feel free to provide feedback, or get involved on GitHub.
DraftCwa Api

cwa.siteConfig

Site-wide settings persisted in the API and cached in the Pinia store.

Site-wide settings persisted in the API and cached in the Pinia store.

cwa.siteConfig.config           // the resolved config object (ComputedRef via store)
cwa.siteConfig.savedSiteConfig  // the server-persisted config (before any unsaved changes)
cwa.siteConfig.isLoading        // boolean

// Load or refresh from the API
await cwa.siteConfig.loadConfig()

// Save changed keys (only changed values are PATCHed)
cwa.siteConfig.saveConfig({
    siteName: 'My New Site Name',
    robotsEnabled: false
})