Iakhub Seitasanov
Iakhub Seitasanov
I quess no =) https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration#step-3-migrating-nexthead
Hi, you can look at my solution here https://github.com/r34son/profile/blob/master/src/middleware.ts cc @alvyynm
Do you have any workflow that checks bundle size? For example i am using https://github.com/hashicorp/nextjs-bundle-analysis Similar pr on mine repo gives -40kb https://github.com/r34son/profile/pull/346#issuecomment-2041414911
@ovflowd Using @next/bundle-analyzer, also set SENTRY_ENABLE to true to force using sentry locally Selected only chunks that related to sentry Before: After:
Problem with `@sentry/profiling-node` integration
> @r34son profiling will not work without a nodejs API, so I would recommend you remove this for edge runtime. I will need to look at how and if it's...
If I init sdk this way: ```ts import { init } from '@sentry/nextjs'; import { nodeProfilingIntegration } from '@sentry/profiling-node'; import { SENTRY_CAPTURE_RATE, SENTRY_DSN } from 'sentry.constants.mjs'; export async function register()...
Only works importing `@sentry/profiling-node` dynamically: ```ts import { init } from '@sentry/nextjs'; import { SENTRY_CAPTURE_RATE, SENTRY_DSN } from 'sentry.constants.mjs'; export async function register() { if (process.env.NEXT_RUNTIME === 'nodejs') { const...
Check it out https://www.joshuakgoldberg.com/blog/you-probably-dont-need-eslint-config-prettier-or-eslint-plugin-prettier/