• Resolved nishankkumar

    (@nishankkumar)


    Hi,
    I am using wordpress as Headless for JSON REST APIs using it in my Next.js App.

    Option-1: is that i can integrated sentry with Next.js but it’s increasing the build and site load time, which i don’t want.

    Option-2: If wordpress sentry plugin provide that would be great to monitor the health of my APIs or any potential errors tracking

    Please let me know if any plan or any recent version already have this features, or am i missing anything in configuration to get it supported.

Viewing 1 replies (of 1 total)
  • Plugin Author stayallive

    (@stayallive)

    There are some differences in what this plugin can provide and the Next.js integration can provide.

    This plugin is able to track errors on the PHP side and able to inject the JavaScript SDK to track errors and do performance monitoring.

    The second part (injecting the JS SDK) is not applicable to your headless setup but the PHP error tracking will work just fine.

    So if you want to see errors occuring in your Next.js front-end you need to add the SDK in your Next.js app manually: https://docs.sentry.io/platforms/javascript/guides/nextjs/

    Tracking PHP errors this plugin will do for you!

    Does that answer your question?

Viewing 1 replies (of 1 total)
  • The topic ‘[NSFW] Does this also monitor JSON REST API?’ is closed to new replies.