@mocanvas/editor · function
declare function getDefaultCdnBaseUrl(): stringThe base URL that default asset URLs (icons, fonts, translations) are built from.
mocanvas ships no hosted CDN and deliberately points at nothing: the
*mechanism* — an app supplying its own URLs through AssetUrlsProvider — is
the part worth having, and a built-in default pointing at somebody else's
infrastructure is a dependency nobody asked for. The empty string makes every
derived URL document-relative, so an app that serves the assets alongside its
own bundle needs no configuration at all.
Set it once at startup with setDefaultCdnBaseUrl if your assets live somewhere else.
Mentioned here
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.