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

Support API-only apps and other apps not using Sprockets or Propshaft #61

Merged
merged 6 commits into from
Nov 14, 2024

Conversation

rosa
Copy link
Member

@rosa rosa commented Nov 13, 2024

This is the same approach taken on rails/mission_control-jobs#203, also moving to importmaps for JavaScript. The approach requires apps to set up either Sprockets or Propshaft, and we recommend the latter as it's simpler and the default in Rails now.

I also took the chance to refresh the dev environment a bit and update some dependencies.

This approach is a possible fix for #50.

And move to propshaft from sprockets.
test/dummy/db/seeds.rb Dismissed Show dismissed Hide dismissed
test/dummy/db/seeds.rb Dismissed Show dismissed Hide dismissed
test/dummy/db/seeds.rb Dismissed Show dismissed Hide dismissed
This was working before because we hadn't been requiring `turbo-rails`
in the engine, but now that we require it, it results in a "Content
missing" error as the response from Sessions#show doesn't include a
matching turbo-frame ID.
Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

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

This is amazing @rosa, thank so so much!!!

@jorgemanrubia jorgemanrubia merged commit 9e9f75a into master Nov 14, 2024
7 checks passed
@jorgemanrubia jorgemanrubia deleted the importmaps-and-api-mode branch November 14, 2024 08:59
@jorgemanrubia
Copy link
Member

I'll release a new version later today with this 🙏

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