Skip to content

Gutenpack: Ensure CDN assets use the correct public path - #10293

Closed
sirreal wants to merge 1 commit into
masterfrom
update/public-path-cdn
Closed

sirreal wants to merge 1 commit into
masterfrom
update/public-path-cdn

Conversation

@sirreal

@sirreal sirreal commented Oct 10, 2018 •

Copy link
Copy Markdown
Member

#10233 introduced dynamic block asset path which didn't account for the CDN assets.

Ensure that the public path respects the CDN

Changes proposed in this Pull Request:

  • Fixes the CDN public path.

Testing instructions:

  • Code split the jetpack-blocks bundle
  • Publish it to WordPress.com sandbox
  • Sandbox the CDN base url
  • Ensure split assets are correctly loaded from CDN.

This is a tricky testing situation because the bundle is not yet split. It does foresee and seek to prevent the issue when it arises.

Proposed changelog entry for your changes:

silence is golden

@sirreal sirreal added Bug When a feature is broken and / or not performing as intended [Status] Needs Review This PR is ready for review. [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack labels Oct 10, 2018
@sirreal sirreal self-assigned this Oct 10, 2018
@sirreal
sirreal requested a review from a team October 10, 2018 17:44
@jetpackbot

Copy link
Copy Markdown
Collaborator

That's a great PR description, thank you so much for your effort!

Generated by 🚫 dangerJS

@simison

simison commented Oct 11, 2018 •

Copy link
Copy Markdown
Member

Since we now have a mechanism to load these assets from the npm module, it might make sense to get rid of the CDN mechanism altogether at this point? It never proved very useful anyway and is thus just a burden to maintain.

@sirreal

sirreal commented Oct 11, 2018

Copy link
Copy Markdown
Member Author

Since we now have a mechanism to load these assets from the npm module, it might make sense to get rid of the CDN mechanism altogether at this point? It never proved very useful anyway and is thus just a burden to maintain.

The concerns are different, but my inclination is to remove it as well. Chunk versioning adds some complication to the CDN setup. This will also overlap with the CDN being built into Jetpack.

Superseded by #10299

@sirreal sirreal closed this Oct 11, 2018
@sirreal
sirreal deleted the update/public-path-cdn branch October 11, 2018 07:04
@kraftbj kraftbj removed the [Status] Needs Review This PR is ready for review. label Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug When a feature is broken and / or not performing as intended [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants