Skip to content
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

feat: add option to public path cdn #1

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

johanseto
Copy link

@johanseto johanseto commented Jun 21, 2023

Based on this proposal to upstream:

openedx#398

Description

The idea of this commit is to add the option to manage the publicPath of webpack to use CDN routing.
Here you can see that this is managed by webpack, the problem is that publicPath is also used in frontend platform with other purposes. So if I override publicPath the built is loading statics from the CDN in the correct behaviour but frontend platform starts with problems.

webpack recomendation

https://webpack.js.org/configuration/output/#outputpublicpath

frontend platform

https://github.com/openedx/frontend-platform/blob/master/src/initialize.js#L102

So with this change, I can affect only the webpack behavior without affecting the history web browser of the frontend platform.

Before

image

2023-06-21_16-21

After

image

2023-06-21_16-22

@johanseto johanseto changed the base branch from master to ednx-release/mango.nelp June 21, 2023 21:28
@johanseto johanseto merged commit 24c68d2 into eduNEXT:ednx-release/mango.nelp Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants