feat(publish): auto-localize Leaflet CDN to platform assets
Memind CI / Test, build, and release guards (push) Failing after 3m57s
Memind CI / Test, build, and release guards (push) Failing after 3m57s
Ship Leaflet 1.9.4 under public/assets/leaflet and rewrite common CDN script/stylesheet URLs during publish and public HTML delivery, matching the existing Chart.js guard pattern. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -27,7 +27,7 @@ import {
|
||||
publishedPageCsp,
|
||||
} from '../mindspace-published-page-csp.mjs';
|
||||
import {
|
||||
rewriteKnownCdnScriptSources,
|
||||
rewriteKnownCdnAssetSources,
|
||||
} from '../mindspace-published-script-localize.mjs';
|
||||
import {
|
||||
injectOgTags,
|
||||
@@ -188,7 +188,7 @@ export function createPortalWorkspacePublicationDelivery({
|
||||
}
|
||||
|
||||
let html =
|
||||
rewriteKnownCdnScriptSources(
|
||||
rewriteKnownCdnAssetSources(
|
||||
delivery.html,
|
||||
).html;
|
||||
html = preparePublicHtmlAssetDelivery(
|
||||
|
||||
Reference in New Issue
Block a user