Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b4b08cd

Browse filesBrowse files
authored
fix(core): Adapt trpc middleware input attachment (getsentry#13831)
1 parent ca19f34 commit b4b08cd
Copy full SHA for b4b08cd

File tree

Expand file treeCollapse file tree

33 files changed

+847
-39
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

33 files changed

+847
-39
lines changed
Open diff view settings
Collapse file

‎.github/workflows/build.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,7 @@ jobs:
902902
'nextjs-13',
903903
'nextjs-14',
904904
'nextjs-15',
905+
'nextjs-t3',
905906
'react-17',
906907
'react-19',
907908
'react-create-hash-router',
Collapse file
+45Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts
37+
38+
!*.d.ts
39+
40+
# Sentry
41+
.sentryclirc
42+
43+
.vscode
44+
45+
test-results
Collapse file
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@sentry:registry=http://127.0.0.1:4873
2+
@sentry-internal:registry=http://127.0.0.1:4873
Collapse file
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
Collapse file
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
await import('./src/env.js');
2+
3+
/** @type {import("next").NextConfig} */
4+
const config = {};
5+
6+
import { withSentryConfig } from '@sentry/nextjs';
7+
8+
export default withSentryConfig(config, {
9+
disableLogger: true,
10+
silent: true,
11+
});
Collapse file
+54Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"name": "t3",
3+
"version": "0.1.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"build": "next build",
8+
"clean": "npx rimraf node_modules pnpm-lock.yaml",
9+
"test:prod": "TEST_ENV=production playwright test",
10+
"test:dev": "TEST_ENV=development playwright test",
11+
"test:build": "pnpm install && npx playwright install && pnpm build",
12+
"test:build-canary": "pnpm install && pnpm add next@canary && pnpm add react@beta && pnpm add react-dom@beta && npx playwright install && pnpm build",
13+
"test:build-latest": "pnpm install && pnpm add next@rc && pnpm add react@beta && pnpm add react-dom@beta && npx playwright install && pnpm build",
14+
"test:assert": "pnpm test:prod && pnpm test:dev"
15+
},
16+
"dependencies": {
17+
"@sentry/nextjs": "latest || *",
18+
"@t3-oss/env-nextjs": "^0.10.1",
19+
"@tanstack/react-query": "^5.50.0",
20+
"@trpc/client": "^11.0.0-rc.446",
21+
"@trpc/react-query": "^11.0.0-rc.446",
22+
"@trpc/server": "^11.0.0-rc.446",
23+
"geist": "^1.3.0",
24+
"next": "^14.2.4",
25+
"react": "^18.3.1",
26+
"react-dom": "^18.3.1",
27+
"server-only": "^0.0.1",
28+
"superjson": "^2.2.1",
29+
"zod": "^3.23.3"
30+
},
31+
"devDependencies": {
32+
"@playwright/test": "^1.44.1",
33+
"@sentry-internal/test-utils": "link:../../../test-utils",
34+
"@types/eslint": "^8.56.10",
35+
"@types/node": "^20.14.10",
36+
"@types/react": "^18.3.3",
37+
"@types/react-dom": "^18.3.0",
38+
"@typescript-eslint/eslint-plugin": "^8.1.0",
39+
"@typescript-eslint/parser": "^8.1.0",
40+
"eslint": "^8.57.0",
41+
"eslint-config-next": "^14.2.4",
42+
"postcss": "^8.4.39",
43+
"prettier": "^3.3.2",
44+
"prettier-plugin-tailwindcss": "^0.6.5",
45+
"tailwindcss": "^3.4.3",
46+
"typescript": "^5.5.3"
47+
},
48+
"ct3aMetadata": {
49+
"initVersion": "7.37.0"
50+
},
51+
"volta": {
52+
"extends": "../../package.json"
53+
}
54+
}
Collapse file
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { getPlaywrightConfig } from '@sentry-internal/test-utils';
2+
const testEnv = process.env.TEST_ENV;
3+
4+
if (!testEnv) {
5+
throw new Error('No test env defined');
6+
}
7+
8+
const config = getPlaywrightConfig(
9+
{
10+
startCommand: testEnv === 'development' ? 'pnpm next dev -p 3030' : 'pnpm next start -p 3030',
11+
port: 3030,
12+
},
13+
{
14+
// This comes with the risk of tests leaking into each other but the tests run quite slow so we should parallelize
15+
workers: '100%',
16+
},
17+
);
18+
19+
export default config;
Collapse file
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const config = {
2+
plugins: {
3+
tailwindcss: {},
4+
},
5+
};
6+
7+
module.exports = config;
Binary file not shown.
Collapse file
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import * as Sentry from '@sentry/nextjs';
2+
3+
Sentry.init({
4+
dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN,
5+
tunnel: `http://localhost:3031/`, // proxy server
6+
tracesSampleRate: 1,
7+
debug: false,
8+
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.