UNPKG
next-axiom
Version:
latest (1.10.0)
1.10.0
1.9.3
1.9.2
1.9.1
1.9.0
1.8.0
1.7.0
1.6.0
1.5.1
1.5.0
1.4.1
1.4.0
1.3.0
1.2.0
1.1.1
1.1.0
1.0.0
1.0.0-rc.1
0.18.1
0.18.0
0.17.0
0.16.0
0.15.1
0.15.0
0.14.0
0.13.0
0.12.1
0.12.0
0.11.1
0.11.0
0.10.0
0.9.0
0.8.1
0.8.0
0.7.0
0.6.0
0.5.0
Send WebVitals from your Next.js project to Axiom.
github.com/axiomhq/next-axiom
axiomhq/next-axiom
next-axiom
/
examples
/
logger
/
app
/
api
/
notfound
/
route.ts
10 lines
(7 loc)
•
257 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
AxiomRequest
, withAxiom }
from
'next-axiom'
;
import
{ notFound }
from
'next/navigation'
;
export
const
runtime =
'nodejs'
;
// test handling NEXT_NOT_FOUND error
export
const
GET
=
withAxiom
(
async
(
req
:
AxiomRequest
) => {
return
notFound
() });