Skip to content

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Apr 20, 2023

We think that vercel/next.js#47127 likely broke the sdk injection for the server-side of nextjs.

Fixes #7718

@github-actions
Copy link
Contributor

github-actions bot commented Apr 20, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.02 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 65.66 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.56 KB (-0.01% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 58.12 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 21.17 KB (0%)
@sentry/browser - Webpack (minified) 69.07 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.19 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 49.03 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 28.59 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 26.82 KB (-0.01% 🔽)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 46.04 KB (-0.01% 🔽)
@sentry/replay - Webpack (gzipped + minified) 39.92 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 64.91 KB (-0.01% 🔽)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 57.89 KB (-0.01% 🔽)

@lforst lforst marked this pull request as ready for review April 20, 2023 15:35
@lforst
Copy link
Contributor Author

lforst commented Apr 20, 2023

Ran the tests here and this fixes it: https://github.com/getsentry/sentry-javascript/actions/runs/4755531643

@lforst lforst requested review from Lms24 and AbhiPrasad April 20, 2023 15:35
@lforst lforst requested a review from mydea April 21, 2023 09:11
* Gets the absolute path to a sentry config file for a particular platform. Returns `undefined` if it doesn't exist.
*/
export function getUserConfigFilePath(projectDir: string, platform: 'server' | 'client' | 'edge'): string | undefined {
const possibilities = [`sentry.${platform}.config.ts`, `sentry.${platform}.config.js`];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any chance that people would do some mjs|cjs shenanigans?

Copy link
Contributor Author

@lforst lforst Apr 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm good point. Right now we only allow js and ts but we should probably allow js, ts, mjs, mts, at some point. Dunno about cjs. Does cts even exist? 🤣

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes *.cts and *.d.cts are valid ts files in TS 5

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is messed up in all kinds of ways

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢

* Gets the absolute path to a sentry config file for a particular platform. Returns `undefined` if it doesn't exist.
*/
export function getUserConfigFilePath(projectDir: string, platform: 'server' | 'client' | 'edge'): string | undefined {
const possibilities = [`sentry.${platform}.config.ts`, `sentry.${platform}.config.js`];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes *.cts and *.d.cts are valid ts files in TS 5

@lforst lforst merged commit 2bcbf3e into develop Apr 21, 2023
@lforst lforst deleted the lforst-nextjs-canary-failures branch April 21, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Canary tests failed
3 participants