@netlify/plugin-nextjs
Advanced tools
Comparing version 5.3.1 to 5.4.0-canary-perf-debug.0
@@ -0,1 +1,2 @@ | ||
import { enableModuleImportTracing } from '{{cwd}}/.netlify/dist/run/handlers/import-time-debug.cjs' | ||
import { | ||
@@ -13,8 +14,12 @@ createRequestContext, | ||
if (process.env.NETLIFY_OTLP_TRACE_EXPORTER_URL || process.env.NETLIFY_NEXT_PERF_DEBUG) { | ||
tracing.start() | ||
} | ||
if (process.env.NETLIFY_NEXT_PERF_DEBUG) { | ||
enableModuleImportTracing() | ||
} | ||
let cachedHandler | ||
export default async function (req, context) { | ||
if (process.env.NETLIFY_OTLP_TRACE_EXPORTER_URL) { | ||
tracing.start() | ||
} | ||
const requestContext = createRequestContext(req.headers.get('x-next-debug-logging')) | ||
@@ -21,0 +26,0 @@ const tracer = getTracer() |
@@ -0,1 +1,2 @@ | ||
import { enableModuleImportTracing } from './.netlify/dist/run/handlers/import-time-debug.cjs' | ||
import { | ||
@@ -12,6 +13,11 @@ createRequestContext, | ||
if (process.env.NETLIFY_OTLP_TRACE_EXPORTER_URL || process.env.NETLIFY_NEXT_PERF_DEBUG) { | ||
tracing.start() | ||
} | ||
if (process.env.NETLIFY_NEXT_PERF_DEBUG) { | ||
enableModuleImportTracing() | ||
} | ||
export default async function handler(req, context) { | ||
if (process.env.NETLIFY_OTLP_TRACE_EXPORTER_URL) { | ||
tracing.start() | ||
} | ||
const requestContext = createRequestContext(req.headers.get('x-next-debug-logging')) | ||
@@ -18,0 +24,0 @@ const tracer = getTracer() |
{ | ||
"name": "@netlify/plugin-nextjs", | ||
"version": "5.3.1", | ||
"version": "5.4.0-canary-perf-debug.0", | ||
"description": "Run Next.js seamlessly on Netlify", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5243634
205
137131
2
31