File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ pages also use the CDN. Fortunately, the
3939:ref: `entrypoints.json <encore-entrypointsjson-simple-description >` paths are updated
4040to include the full URL to the CDN.
4141
42+ When deploying to a subdirectory of your CDN, you must add the path at the end of your URL -
43+ e.g. ``Encore.setPublicPath('https://my-cool-app.com.global.prod.fastly.net/awesome-website') ``
44+ will generate assets URLs like ``https://my-cool-app.com.global.prod.fastly.net/awesome-website/dashboard.js ``
45+
4246If you are using ``Encore.enableIntegrityHashes() `` and your CDN and your domain
4347are not the `same-origin `_, you may need to set the ``crossorigin `` option in
4448your webpack_encore.yaml configuration to ``anonymous `` or ``use-credentials ``
You can’t perform that action at this time.
0 commit comments