You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #15044 [Encore] Deploying to a CDN subdirectory (t-richard)
This PR was merged into the 4.4 branch.
Discussion
----------
[Encore] Deploying to a CDN subdirectory
<!--
If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).
If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `5.x` for features of unreleased versions).
-->
When deploying to a CDN, you might want to deploy your whole public directory to also include bundles assets for example.
This would result in the CDN containing two folders `bundles` and `build` when using Encore.
This may also be the case if using a shared CDN for multiple applications where each project lives in a given folder.
This PR tries to document this and it seems the only solution is to add the path of the subdirectory at the end of the URL.
It's even showcased in the code comments [here](https://github.com/symfony/webpack-encore/blob/main/index.js#L84).
Commits
-------
e3328a4 [Encore] Deploying to a CDN subdirectory
0 commit comments