#Fresh installation of the nextjs sentry sdk gives warning messages in console?

1 messages · Page 1 of 1 (latest)

mild spindle
#

Seeing the following messages come up when running next dev after a fresh installation of v8 on next 14.2.3:

[@sentry/nextjs] It appears you've configured a `sentry.server.config.ts` file. Please ensure to put this file's content into the `register()` function of a Next.js instrumentation hook instead. To ensure correct functionality of the SDK, `Sentry.init` must be called inside `instrumentation.ts`. Learn more about setting up an instrumentation hook in Next.js: https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation. You can safely delete the `sentry.server.config.ts` file afterward.
[@sentry/nextjs] It appears you've configured a `sentry.edge.config.ts` file. Please ensure to put this file's content into the `register()` function of a Next.js instrumentation hook instead. To ensure correct functionality of the SDK, `Sentry.init` must be called inside `instrumentation.ts`. Learn more about setting up an instrumentation hook in Next.js: https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation. You can safely delete the `sentry.edge.config.ts` file afterward.

Any thoughts? Can't find anything on github issues about it

mortal marten
#

Are the logs valid? Did you run the installation wizard or did you bump the package on an existing project?

spare minnow
mild spindle