Loading...
Loading...
MUST activate when the project contains a uiBundles/*/src/ directory and scaffolding a new UI bundle or app, or when editing ui-bundle.json, .uibundle-meta.xml, or CSP trusted site files. Use this skill when scaffolding with sf template generate ui-bundle, configuring ui-bundle.json (routing, headers, outputDir), or registering CSP Trusted Sites. Activate when the task involves files matching *.uibundle-meta.xml, ui-bundle.json, or cspTrustedSites/*.cspTrustedSite-meta.xml.
npx skill4agent add forcedotcom/afv-library generating-ui-bundle-metadatasf template generate ui-bundle--template reactbasic-nsf template generate ui-bundle -n CoffeeBoutique --template reactbasic<title>building-ui-bundle-frontenduiBundles/<AppName>/<AppName>.uibundle-meta.xmldist/masterLabelversionisActivedescriptionoutputDirroutingheaders{}outputDirrouting.fallback/\..*?**%../rewritesredirectsfallbacktrailingSlashfileBasedRouting"always""never""auto"{ route?, rewrite }{ "route": "/app/:path*", "rewrite": "/index.html" }{ route?, redirect, statusCode? }{ source, headers: [{ key, value }] }{
"routing": {
"rewrites": [{ "route": "/app/:path*", "rewrite": "/index.html" }],
"trailingSlash": "never"
},
"headers": [
{
"source": "/assets/**",
"headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }]
}
]
}{}"routing": {}[{}]"outputDir": ".""outputDir": "./"force-app/main/default/cspTrustedSites/| Resource Type | Directive Field |
|---|---|
| Images | |
| API calls (fetch, XHR) | |
| Fonts | |
| Stylesheets | |
| Video / audio | |
| Iframes | |
isApplicableToConnectSrctrueimplementation/csp-metadata-format.md.cspTrustedSite-meta.xmlforce-app/main/default/cspTrustedSites/