-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Back in May 2024, Vercel announced that Log Drains are now generally available and restricted the usage on Hobby plans
Log Drains are only available on Pro and Enterprise plans. Existing Hobby customers may continue to use Log Drains as configured, but no further usage or configuration is available.
This means we cannot create a new log drain for the IrvineHacks 2025 project on Vercel. We could try and swap with last year's project, but there's no guarantee that will work cleanly with renaming the projects, and that doesn't seem like a sustainable long-term solution (maybe Vercel forcefully disables the existing log drains in the future).
We previously used Axiom which has a Personal plan providing log retention for 30 days along with nice monitoring features such as streaming, querying, and alerting. Perhaps it might be good to invest in another solution with more permanent log retention, but Axiom was decently convenient and free to use. To continue using this with new Vercel projects, we'll need to manually connect Axiom's integrations to the Next.js app and the Python serverless function for the API.
For the Next.js app
- Install next-axiom and add the necessary middleware
- Include the
AxiomWebVitalscomponent in the root layout - Update the server-side
console.errormessage ingetUserIdentity.tsto use aLoggerfrom next-axiom
For the Python API