Skip to content

Revert from Propshaft back to Sprockets#8412

Merged
aduth merged 6 commits intomainfrom
aduth-revert-propshaft
May 17, 2023
Merged

Revert from Propshaft back to Sprockets#8412
aduth merged 6 commits intomainfrom
aduth-revert-propshaft

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented May 17, 2023

🛠 Summary of changes

This reverts the changes that migrated from Sprockets to Propshaft (#8387, #8402, #8409) due to issues observed in deployed environments.

Specifically, there seems to be some unpredictable behavior related to our use of CDNs via asset_host, where recent changes in Propshaft result in assets resolving to invalid paths (e.g. /assets/login.gov/assets/angle-arrow-up-white-[digest].svg vs. expected /assets/angle-arrow-up-white-[digest].svg). The idea with reverting is to allow for this behavior to stabilize in Propshaft.

This does preserve some of the work in the reverted pull requests, notably spec revisions and other improvements which are valuable regardless of Sprockets vs. Prosphaft. These are reflected in commits 857112c, 080636a, and 76d2268.

Related Slack discussions:

Related upstream issues / commits:

📜 Testing Plan

  1. Go to http://localhost:3000
  2. Observe that images and styles appear as expected

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduth aduth merged commit d632066 into main May 17, 2023
@aduth aduth deleted the aduth-revert-propshaft branch May 17, 2023 16:24
aduth added a commit that referenced this pull request May 23, 2023
aduth added a commit that referenced this pull request May 25, 2023
* Revert "Revert from Propshaft back to Sprockets (#8412)"

This reverts commit d632066.

* Avoid configuring asset_host
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.

3 participants