Skip to content

Commit 776a093

Browse files
committed
fix next 13.2
1 parent aacc64a commit 776a093

20 files changed

+5529
-4347
lines changed

apps/nextjs-13_2_0/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@types/node": "20.12.7",
1414
"@types/react": "18.2.79",
1515
"@types/react-dom": "18.2.25",
16-
"next": "14.2.1",
16+
"next": "13.2.0",
1717
"react": "18.2.0",
1818
"react-dom": "18.2.0",
1919
"typescript": "5.4.5"

apps/nextjs-13_2_0/sentry.client.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as Sentry from '@sentry/nextjs';
22

33
Sentry.init({
44
environment: 'qa', // dynamic sampling bias to keep transactions
5-
dsn: 'https://3b6c388182fb435097f41d181be2b2ba@o4504321058471936.ingest.sentry.io/4504321066008576',
5+
dsn: process.env.E2E_TEST_DSN,
66
includeLocalVariables: true,
77
tunnel: `http://localhost:3031/`, // proxy server
88
tracesSampleRate: 1,

apps/nextjs-13_2_0/sentry.edge.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as Sentry from '@sentry/nextjs';
22

33
Sentry.init({
44
environment: 'qa', // dynamic sampling bias to keep transactions
5-
dsn: 'https://3b6c388182fb435097f41d181be2b2ba@o4504321058471936.ingest.sentry.io/4504321066008576',
5+
dsn: process.env.E2E_TEST_DSN,
66
includeLocalVariables: true,
77
tunnel: `http://localhost:3031/`, // proxy server
88
tracesSampleRate: 1,

apps/nextjs-13_2_0/sentry.server.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as Sentry from '@sentry/nextjs';
22

33
Sentry.init({
44
environment: 'qa', // dynamic sampling bias to keep transactions
5-
dsn: 'https://3b6c388182fb435097f41d181be2b2ba@o4504321058471936.ingest.sentry.io/4504321066008576',
5+
dsn: process.env.E2E_TEST_DSN,
66
includeLocalVariables: true,
77
tunnel: `http://localhost:3031/`, // proxy server
88
tracesSampleRate: 1,

apps/nextjs-13_2_0/tsconfig.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"exclude": ["node_modules"],
55
"compilerOptions": {
66
"lib": ["dom", "dom.iterable", "esnext"],
7+
"noEmit": true,
8+
"target": "es5",
9+
"forceConsistentCasingInFileNames": true,
710
"allowJs": true,
811
"skipLibCheck": true,
912
"strict": true,
@@ -14,15 +17,8 @@
1417
"isolatedModules": true,
1518
"jsx": "preserve",
1619
"incremental": true,
17-
"plugins": [
18-
{
19-
"name": "next"
20-
}
21-
],
20+
"plugins": [{ "name": "next" }],
2221
"baseUrl": ".",
23-
"paths": {
24-
"@/*": ["./*"]
25-
},
26-
"noEmit": true
22+
"paths": { "@/*": ["./*"] }
2723
}
2824
}

payload-files/nextjs-13_2_0/_api_test-error--event.json

Lines changed: 921 additions & 398 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-error--transaction.json

Lines changed: 146 additions & 873 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-error-manual--event.json

Lines changed: 987 additions & 166 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-error-manual--transaction.json

Lines changed: 54 additions & 745 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-local-variables-caught--event.json

Lines changed: 952 additions & 357 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-local-variables-caught--transaction.json

Lines changed: 72 additions & 25 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-local-variables-uncaught--event.json

Lines changed: 937 additions & 354 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-local-variables-uncaught--transaction.json

Lines changed: 59 additions & 24 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-param-error_[param]--event.json

Lines changed: 923 additions & 376 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-param-error_[param]--transaction.json

Lines changed: 147 additions & 850 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-param-success_[param]--transaction.json

Lines changed: 43 additions & 56 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-success--transaction.json

Lines changed: 39 additions & 70 deletions
Large diffs are not rendered by default.

payload-files/nextjs-13_2_0/_api_test-success-manual--transaction.json

Lines changed: 47 additions & 36 deletions
Large diffs are not rendered by default.

payload-files/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ the generated files go.
1010
### Next.js
1111

1212
- v7: "transaction" is " " in sent event (when error happens)
13-
- v8: 'route' is added to the name of the transaction. Eg. /test becomes /test/route
13+
- v8: 'route' is added to the name of the transaction. Eg. /test becomes /test/route

yarn.lock

Lines changed: 192 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,69 +451,167 @@ __metadata:
451451
languageName: node
452452
linkType: hard
453453

454+
"@next/env@npm:13.2.0":
455+
version: 13.2.0
456+
resolution: "@next/env@npm:13.2.0"
457+
checksum: 10c0/0b6ba9e9536fe68c5f13c4ad6daf095f74788330ba17786396ba573a0d34d2af465e3806491a2f3302c0114fdb3036f87dcab197730b0d336f6caf965b68bdec
458+
languageName: node
459+
linkType: hard
460+
454461
"@next/env@npm:14.2.1":
455462
version: 14.2.1
456463
resolution: "@next/env@npm:14.2.1"
457464
checksum: 10c0/c0c2cd3d94aab6454f7a2f88922e5968b82fafda98160f4cc1048c335b9e3d10d6d9095ac2ed2fc06b14dc83b596cfb205bcafa1139d81b0e93fa0670d1461ad
458465
languageName: node
459466
linkType: hard
460467

468+
"@next/swc-android-arm-eabi@npm:13.2.0":
469+
version: 13.2.0
470+
resolution: "@next/swc-android-arm-eabi@npm:13.2.0"
471+
conditions: os=android & cpu=arm
472+
languageName: node
473+
linkType: hard
474+
475+
"@next/swc-android-arm64@npm:13.2.0":
476+
version: 13.2.0
477+
resolution: "@next/swc-android-arm64@npm:13.2.0"
478+
conditions: os=android & cpu=arm64
479+
languageName: node
480+
linkType: hard
481+
482+
"@next/swc-darwin-arm64@npm:13.2.0":
483+
version: 13.2.0
484+
resolution: "@next/swc-darwin-arm64@npm:13.2.0"
485+
conditions: os=darwin & cpu=arm64
486+
languageName: node
487+
linkType: hard
488+
461489
"@next/swc-darwin-arm64@npm:14.2.1":
462490
version: 14.2.1
463491
resolution: "@next/swc-darwin-arm64@npm:14.2.1"
464492
conditions: os=darwin & cpu=arm64
465493
languageName: node
466494
linkType: hard
467495

496+
"@next/swc-darwin-x64@npm:13.2.0":
497+
version: 13.2.0
498+
resolution: "@next/swc-darwin-x64@npm:13.2.0"
499+
conditions: os=darwin & cpu=x64
500+
languageName: node
501+
linkType: hard
502+
468503
"@next/swc-darwin-x64@npm:14.2.1":
469504
version: 14.2.1
470505
resolution: "@next/swc-darwin-x64@npm:14.2.1"
471506
conditions: os=darwin & cpu=x64
472507
languageName: node
473508
linkType: hard
474509

510+
"@next/swc-freebsd-x64@npm:13.2.0":
511+
version: 13.2.0
512+
resolution: "@next/swc-freebsd-x64@npm:13.2.0"
513+
conditions: os=freebsd & cpu=x64
514+
languageName: node
515+
linkType: hard
516+
517+
"@next/swc-linux-arm-gnueabihf@npm:13.2.0":
518+
version: 13.2.0
519+
resolution: "@next/swc-linux-arm-gnueabihf@npm:13.2.0"
520+
conditions: os=linux & cpu=arm
521+
languageName: node
522+
linkType: hard
523+
524+
"@next/swc-linux-arm64-gnu@npm:13.2.0":
525+
version: 13.2.0
526+
resolution: "@next/swc-linux-arm64-gnu@npm:13.2.0"
527+
conditions: os=linux & cpu=arm64 & libc=glibc
528+
languageName: node
529+
linkType: hard
530+
475531
"@next/swc-linux-arm64-gnu@npm:14.2.1":
476532
version: 14.2.1
477533
resolution: "@next/swc-linux-arm64-gnu@npm:14.2.1"
478534
conditions: os=linux & cpu=arm64 & libc=glibc
479535
languageName: node
480536
linkType: hard
481537

538+
"@next/swc-linux-arm64-musl@npm:13.2.0":
539+
version: 13.2.0
540+
resolution: "@next/swc-linux-arm64-musl@npm:13.2.0"
541+
conditions: os=linux & cpu=arm64 & libc=musl
542+
languageName: node
543+
linkType: hard
544+
482545
"@next/swc-linux-arm64-musl@npm:14.2.1":
483546
version: 14.2.1
484547
resolution: "@next/swc-linux-arm64-musl@npm:14.2.1"
485548
conditions: os=linux & cpu=arm64 & libc=musl
486549
languageName: node
487550
linkType: hard
488551

552+
"@next/swc-linux-x64-gnu@npm:13.2.0":
553+
version: 13.2.0
554+
resolution: "@next/swc-linux-x64-gnu@npm:13.2.0"
555+
conditions: os=linux & cpu=x64 & libc=glibc
556+
languageName: node
557+
linkType: hard
558+
489559
"@next/swc-linux-x64-gnu@npm:14.2.1":
490560
version: 14.2.1
491561
resolution: "@next/swc-linux-x64-gnu@npm:14.2.1"
492562
conditions: os=linux & cpu=x64 & libc=glibc
493563
languageName: node
494564
linkType: hard
495565

566+
"@next/swc-linux-x64-musl@npm:13.2.0":
567+
version: 13.2.0
568+
resolution: "@next/swc-linux-x64-musl@npm:13.2.0"
569+
conditions: os=linux & cpu=x64 & libc=musl
570+
languageName: node
571+
linkType: hard
572+
496573
"@next/swc-linux-x64-musl@npm:14.2.1":
497574
version: 14.2.1
498575
resolution: "@next/swc-linux-x64-musl@npm:14.2.1"
499576
conditions: os=linux & cpu=x64 & libc=musl
500577
languageName: node
501578
linkType: hard
502579

580+
"@next/swc-win32-arm64-msvc@npm:13.2.0":
581+
version: 13.2.0
582+
resolution: "@next/swc-win32-arm64-msvc@npm:13.2.0"
583+
conditions: os=win32 & cpu=arm64
584+
languageName: node
585+
linkType: hard
586+
503587
"@next/swc-win32-arm64-msvc@npm:14.2.1":
504588
version: 14.2.1
505589
resolution: "@next/swc-win32-arm64-msvc@npm:14.2.1"
506590
conditions: os=win32 & cpu=arm64
507591
languageName: node
508592
linkType: hard
509593

594+
"@next/swc-win32-ia32-msvc@npm:13.2.0":
595+
version: 13.2.0
596+
resolution: "@next/swc-win32-ia32-msvc@npm:13.2.0"
597+
conditions: os=win32 & cpu=ia32
598+
languageName: node
599+
linkType: hard
600+
510601
"@next/swc-win32-ia32-msvc@npm:14.2.1":
511602
version: 14.2.1
512603
resolution: "@next/swc-win32-ia32-msvc@npm:14.2.1"
513604
conditions: os=win32 & cpu=ia32
514605
languageName: node
515606
linkType: hard
516607

608+
"@next/swc-win32-x64-msvc@npm:13.2.0":
609+
version: 13.2.0
610+
resolution: "@next/swc-win32-x64-msvc@npm:13.2.0"
611+
conditions: os=win32 & cpu=x64
612+
languageName: node
613+
linkType: hard
614+
517615
"@next/swc-win32-x64-msvc@npm:14.2.1":
518616
version: 14.2.1
519617
resolution: "@next/swc-win32-x64-msvc@npm:14.2.1"
@@ -824,6 +922,15 @@ __metadata:
824922
languageName: node
825923
linkType: hard
826924

925+
"@swc/helpers@npm:0.4.14":
926+
version: 0.4.14
927+
resolution: "@swc/helpers@npm:0.4.14"
928+
dependencies:
929+
tslib: "npm:^2.4.0"
930+
checksum: 10c0/a8bd2e291fca73aa35ff316fb1aa9fb9554856518c8bf64ab5a355fb587d79d04d67f95033012fcdc94f507d22484871d95dc72efdd9ff13cc5d0ac68dfba999
931+
languageName: node
932+
linkType: hard
933+
827934
"@swc/helpers@npm:0.5.5":
828935
version: 0.5.5
829936
resolution: "@swc/helpers@npm:0.5.5"
@@ -1900,7 +2007,7 @@ __metadata:
19002007
languageName: node
19012008
linkType: hard
19022009

1903-
"caniuse-lite@npm:^1.0.30001579, caniuse-lite@npm:^1.0.30001587":
2010+
"caniuse-lite@npm:^1.0.30001406, caniuse-lite@npm:^1.0.30001579, caniuse-lite@npm:^1.0.30001587":
19042011
version: 1.0.30001610
19052012
resolution: "caniuse-lite@npm:1.0.30001610"
19062013
checksum: 10c0/015956a0bf2e3e233da3dc00c5632bbb4d416bcd6ced2f839e33e45b197a856234f97cb046e7427b83d7e3a3d6df314dfab1c86eb9d970970e00ad85a50b4933
@@ -4435,7 +4542,7 @@ __metadata:
44354542
languageName: node
44364543
linkType: hard
44374544

4438-
"nanoid@npm:^3.3.6":
4545+
"nanoid@npm:^3.3.4, nanoid@npm:^3.3.6":
44394546
version: 3.3.7
44404547
resolution: "nanoid@npm:3.3.7"
44414548
bin:
@@ -4497,6 +4604,77 @@ __metadata:
44974604
languageName: unknown
44984605
linkType: soft
44994606

4607+
"next@npm:13.2.0":
4608+
version: 13.2.0
4609+
resolution: "next@npm:13.2.0"
4610+
dependencies:
4611+
"@next/env": "npm:13.2.0"
4612+
"@next/swc-android-arm-eabi": "npm:13.2.0"
4613+
"@next/swc-android-arm64": "npm:13.2.0"
4614+
"@next/swc-darwin-arm64": "npm:13.2.0"
4615+
"@next/swc-darwin-x64": "npm:13.2.0"
4616+
"@next/swc-freebsd-x64": "npm:13.2.0"
4617+
"@next/swc-linux-arm-gnueabihf": "npm:13.2.0"
4618+
"@next/swc-linux-arm64-gnu": "npm:13.2.0"
4619+
"@next/swc-linux-arm64-musl": "npm:13.2.0"
4620+
"@next/swc-linux-x64-gnu": "npm:13.2.0"
4621+
"@next/swc-linux-x64-musl": "npm:13.2.0"
4622+
"@next/swc-win32-arm64-msvc": "npm:13.2.0"
4623+
"@next/swc-win32-ia32-msvc": "npm:13.2.0"
4624+
"@next/swc-win32-x64-msvc": "npm:13.2.0"
4625+
"@swc/helpers": "npm:0.4.14"
4626+
caniuse-lite: "npm:^1.0.30001406"
4627+
postcss: "npm:8.4.14"
4628+
styled-jsx: "npm:5.1.1"
4629+
peerDependencies:
4630+
"@opentelemetry/api": ^1.4.0
4631+
fibers: ">= 3.1.0"
4632+
node-sass: ^6.0.0 || ^7.0.0
4633+
react: ^18.2.0
4634+
react-dom: ^18.2.0
4635+
sass: ^1.3.0
4636+
dependenciesMeta:
4637+
"@next/swc-android-arm-eabi":
4638+
optional: true
4639+
"@next/swc-android-arm64":
4640+
optional: true
4641+
"@next/swc-darwin-arm64":
4642+
optional: true
4643+
"@next/swc-darwin-x64":
4644+
optional: true
4645+
"@next/swc-freebsd-x64":
4646+
optional: true
4647+
"@next/swc-linux-arm-gnueabihf":
4648+
optional: true
4649+
"@next/swc-linux-arm64-gnu":
4650+
optional: true
4651+
"@next/swc-linux-arm64-musl":
4652+
optional: true
4653+
"@next/swc-linux-x64-gnu":
4654+
optional: true
4655+
"@next/swc-linux-x64-musl":
4656+
optional: true
4657+
"@next/swc-win32-arm64-msvc":
4658+
optional: true
4659+
"@next/swc-win32-ia32-msvc":
4660+
optional: true
4661+
"@next/swc-win32-x64-msvc":
4662+
optional: true
4663+
peerDependenciesMeta:
4664+
"@opentelemetry/api":
4665+
optional: true
4666+
fibers:
4667+
optional: true
4668+
node-sass:
4669+
optional: true
4670+
sass:
4671+
optional: true
4672+
bin:
4673+
next: dist/bin/next
4674+
checksum: 10c0/17c83e9002a8ac9a84359212a4615257bd45476ece92be36c8f3f1370f1981cf7abbe135ae862ccceb5b4830f635d3542f9d40f68e7eafff826de91831d7b746
4675+
languageName: node
4676+
linkType: hard
4677+
45004678
"next@npm:14.2.1":
45014679
version: 14.2.1
45024680
resolution: "next@npm:14.2.1"
@@ -4563,7 +4741,7 @@ __metadata:
45634741
"@types/node": "npm:20.12.7"
45644742
"@types/react": "npm:18.2.79"
45654743
"@types/react-dom": "npm:18.2.25"
4566-
next: "npm:14.2.1"
4744+
next: "npm:13.2.0"
45674745
react: "npm:18.2.0"
45684746
react-dom: "npm:18.2.0"
45694747
typescript: "npm:5.4.5"
@@ -4965,6 +5143,17 @@ __metadata:
49655143
languageName: node
49665144
linkType: hard
49675145

5146+
"postcss@npm:8.4.14":
5147+
version: 8.4.14
5148+
resolution: "postcss@npm:8.4.14"
5149+
dependencies:
5150+
nanoid: "npm:^3.3.4"
5151+
picocolors: "npm:^1.0.0"
5152+
source-map-js: "npm:^1.0.2"
5153+
checksum: 10c0/2a4cfa28e2f1bfd358313501f7771bd596e494487c7b735c492e2f8b1faf493d24fcb43e2e6ad825863fc65a77abb949ca8f228602ae46a022f02dc812c4ac8b
5154+
languageName: node
5155+
linkType: hard
5156+
49685157
"postcss@npm:8.4.31":
49695158
version: 8.4.31
49705159
resolution: "postcss@npm:8.4.31"

0 commit comments

Comments
 (0)