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
39
39
:ref: `entrypoints.json <encore-entrypointsjson-simple-description >` paths are updated
40
40
to include the full URL to the CDN.
41
41
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
+
42
46
If you are using ``Encore.enableIntegrityHashes() `` and your CDN and your domain
43
47
are not the `same-origin `_, you may need to set the ``crossorigin `` option in
44
48
your webpack_encore.yaml configuration to ``anonymous `` or ``use-credentials ``
You can’t perform that action at this time.
0 commit comments