Skip to content

[Encore] Deploying to a CDN subdirectory #15044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

t-richard
Copy link
Contributor

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.

@javiereguiluz
Copy link
Member

I agree this will be useful for some readers. Let's merge it. Thanks Thibault.

@javiereguiluz javiereguiluz merged commit 078e32a into symfony:4.4 Apr 21, 2021
@t-richard t-richard deleted the cdn-deploy-subdirectory branch April 21, 2021 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants