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

L-1563 Fix flushing logs in new version of Next.js on Vercel #16

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

PetrHeinz
Copy link
Member

Similar change can be seen in axiomhq/next-axiom.

In my testing, this was the main blocker in having structured logging work out-of-the-box in Vercel, as explained in our docs.

We should also update the docs to ES6 (but that's easily rewritten by devs familiar with JS).

@PetrHeinz PetrHeinz requested a review from gyfis February 16, 2024 17:44
@PetrHeinz PetrHeinz changed the title L-1563 Replace ev.waitUntil(logger.flush()) by await logger.flush() L-1563 Fix flushing logs in new version of Next.js on Vercel Feb 16, 2024
@PetrHeinz PetrHeinz merged commit 2b6fa88 into main Feb 16, 2024
14 checks passed
@PetrHeinz PetrHeinz deleted the ph/next-14-fixes branch February 16, 2024 20:10
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.

1 participant