mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
A version written into a manifest is written into every manifest that wants it, which is how eslint came to exist in a hundred and four forms across this estate and how a package came to resolve twice at run time. The catalog moves the number out of the manifest: a manifest names the package, the workspace names the version. Four are held below their latest because the newer release cannot be used, and the reason is recorded rather than the version alone: @noble/hashes 2 renamed every subpath the web3 stack imports, @splinetool/runtime 2 depends on a package that was never published, @dynamic-labs 5.4.1 the same, and react-resizable-panels 3 points its types condition at the bundle.
Insights Next.js Config
This package handles sourcemap configuration and upload for the Insights Error Tracking product.
Please see the main Insights Error Tracking docs.
Usage
// next.config.ts
import { withInsightsConfig } from '@hanzo/nextjs-config'
const nextConfig = {
// Your Next.js configuration here
}
export default withInsightsConfig(nextConfig, {
personalApiKey: process.env.INSIGHTS_PERSONAL_API_KEY!, // Personal API key used for sourcemap uploads, see https://app.insights.hanzo.ai/settings/user-api-keys
projectId: process.env.INSIGHTS_PROJECT_ID!, // Project ID, see https://app.insights.hanzo.ai/settings/project#variables
host: process.env.NEXT_PUBLIC_INSIGHTS_HOST!, // (optional) Host URL, defaults to https://us.insights.hanzo.ai
sourcemaps: {
// (optional)
enabled: true, // (optional) Enable sourcemaps generation and upload, default to true on production builds
releaseName: 'my-application', // (optional) Release name, defaults to repository name
releaseVersion: '1.0.0', // (optional) Release version, defaults to current git commit
deleteAfterUpload: true, // (optional) Delete sourcemaps after upload, defaults to true
},
})