Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@cronitorio/cronitor-rum-nextjs
Advanced tools
Important: As of version 0.2.0 of this package only Next.js 13 or later will be supported. For previous versions of Next.js please install version 0.1.0 of this package.
Official Cronitor Real User Monitoring integration for Next.js.
Run the following command to install in your project:
npm install @cronitorio/cronitor-rum-nextjs
Or with yarn:
yarn add @cronitorio/cronitor-rum-nextjs
You can now import, and use the Cronitor hook on your project.
// ./pages/_app.js
import { useCronitor } from '@cronitorio/cronitor-rum-nextjs';
function CustomApp({ Component, pageProps }) {
// Load Cronitor only once during the app lifecycle
useCronitor('YOUR_CLIENT_KEY');
return <Component {...pageProps} />;
}
export default CustomApp;
When developing in localhost, Cronitor does not send events to avoid using your quota.
You can enable debug mode to send events when testing things locally. It will also log messages to console.
// ./pages/_app.js
import { useCronitor } from '@cronitorio/cronitor-rum-nextjs';
function CustomApp({ Component, pageProps }) {
useCronitor('YOUR_SITE_ID', {
debug: true,
environment: "staging",
includeURLQueryParams: ["tab", "pageNum"]
});
return <Component {...pageProps} />;
}
export default CustomApp;
If you discover any issue regarding security, please disclose the information responsibly by sending us an email at support@cronitor.io. Do NOT create a Issue on the GitHub repo.
Please check for any existing issues before openning a new Issue. If you'd like to work on something, please open a new Issue describing what you'd like to do before submitting a Pull Request.
See LICENSE.
FAQs
Official Cronitor integration for Next.js
The npm package @cronitorio/cronitor-rum-nextjs receives a total of 314 weekly downloads. As such, @cronitorio/cronitor-rum-nextjs popularity was classified as not popular.
We found that @cronitorio/cronitor-rum-nextjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.