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

Log SSR errors in Laravel #425

Closed
wants to merge 4 commits into from

Conversation

alexryall
Copy link

@alexryall alexryall commented Jun 29, 2022

Currently the only place SSR errors are logged is in the output of the Node process which is not particularly useful for production systems. Several times we have managed to make code changes live and accidentally break the SSR without knowing.

This change will accompany another PR on intertia so that SSR errors are included in the Node server response and logged in Laravel via whichever adapters have been setup in Laravel.

The isset is required to make the change backwards compatible with the node server when it doesn't respond with a body.

This is an example of an SSR error logged using the https://github.com/TheoKouzelis/laravel-airbrake adapter
image

Copy link

@vasilGerginski vasilGerginski left a comment

Choose a reason for hiding this comment

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

i like that. I am having trouble with SSR as well.

* Allow PHP 8.2

* Update workflow for PHP 8.2

* Formatting

* Set minimum PHP 8.2 versions

Co-authored-by: Jonathan Reinink <jonathan@reinink.ca>
(cherry picked from commit b00fe8c)
@driesvints driesvints deleted the branch inertiajs:master May 15, 2024 15:01
@driesvints driesvints closed this May 15, 2024
@driesvints
Copy link
Collaborator

Heya. We removed our master branch. Feel free to re-attempt this to 1.x!

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.

None yet

3 participants