UNPKG
create-aelf-dapp
Version:
latest (0.1.14)
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.2
0.1.1
0.1.0
Create aelf Dapp based on Next.js with one command
create-aelf-dapp
/
lib
/
generator
/
templates
/
src
/
app
/
api
/
demos
/
sentry-example-api
/
route.js
10 lines
(7 loc)
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
NextResponse
}
from
'next/server'
;
export
const
dynamic =
'force-dynamic'
;
// A faulty API route to test Sentry's error monitoring
export
function
GET
(
) {
throw
new
Error
(
'Sentry Example API Route Error'
);
return
NextResponse
.
json
({
data
:
'Testing Sentry Error...'
}); }