mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 15:05:24 +08:00
ac896755bb
Previously, the app HTML served by the Ember-CLI proxy was generated based on a 'bootstrap json' payload generated by Rails. This inevitably leads to differences between the Rails HTML and the Ember-CLI HTML. This commit overhauls our proxying strategy. Now, we totally ignore the ember-cli `index.html` file. Instead, we take the full HTML from Rails and surgically replace script URLs based on a `data-discourse-entrypoint` attribute. This should be faster (only one request to Rails), more robust, and less confusing for developers. |
||
---|---|---|
.. | ||
application_helper_spec.rb | ||
redis_snapshot_helper.rb | ||
topics_helper_spec.rb | ||
user_notifications_helper_spec.rb |