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

Make it easier to enable new phoenix_live_reload features #5799

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

rhcarvalho
Copy link
Contributor

Add commented-out JS code to enable in development:

  1. Server logs on browser console
  2. Browser click to open component on code editor

This should make those useful features more discoverable and easier to enable for new apps.

Code is based on:

See also:

https://fly.io/phoenix-files/phoenix-dev-blog-server-logs-in-the-browser-console/

Add commented-out JS code to enable in development:

1. Server logs on browser console
2. Browser click to open component on code editor

This should make those useful features more discoverable and easier to
enable for new apps.

Code is based on:

https://github.com/phoenixframework/phoenix_live_reload?tab=readme-ov-file#streaming-serving-logs-to-the-web-console
https://github.com/phoenixframework/phoenix_live_reload?tab=readme-ov-file#jumping-to-heex-function-definitions

See also:

https://fly.io/phoenix-files/phoenix-dev-blog-server-logs-in-the-browser-console/
@rhcarvalho rhcarvalho force-pushed the server-logs-in-new-apps branch from 0379740 to 1fd6bd1 Compare June 28, 2024 07:26
@rhcarvalho
Copy link
Contributor Author

Rebased on top of latest main, no changes.

SteffenDE added a commit that referenced this pull request Nov 26, 2024
This reverts commit f586988.

I didn't see #5799;
will go with that instead!
@SteffenDE SteffenDE merged commit a3ca54d into phoenixframework:main Nov 26, 2024
7 checks passed
@SteffenDE
Copy link
Contributor

Thank you! 🙌

SteffenDE added a commit that referenced this pull request Nov 26, 2024
Relates to: #5799
Relates to: #5910

Co-authored-by: Rodolfo Carvalho <[email protected]>
Co-authored-by: ponychicken <[email protected]>
SteffenDE added a commit that referenced this pull request Nov 27, 2024
Relates to: #5799
Relates to: #5910

Co-authored-by: Rodolfo Carvalho <[email protected]>
Co-authored-by: ponychicken <[email protected]>
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