@netlify/plugin-nextjs 5.0.0-rc.1 → 5.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,8 +5,10 @@
5
5
  })();
6
6
 
7
7
  import {
8
- require_src
9
- } from "../../esm-chunks/chunk-VDDK7MXY.js";
8
+ SpanStatusCode,
9
+ init_esm,
10
+ trace
11
+ } from "../../esm-chunks/chunk-GQ6KIYPX.js";
10
12
  import {
11
13
  import_internal
12
14
  } from "../../esm-chunks/chunk-HYBEXB2Z.js";
@@ -3260,13 +3262,13 @@ function toComputeResponse(res) {
3260
3262
  }
3261
3263
 
3262
3264
  // src/run/handlers/server.ts
3263
- var import_api = __toESM(require_src(), 1);
3265
+ init_esm();
3264
3266
  import { createRequestContext, runWithRequestContext } from "./request-context.cjs";
3265
3267
  var nextHandler;
3266
3268
  var nextConfig;
3267
3269
  var tagsManifest;
3268
3270
  var server_default = async (request) => {
3269
- const tracer = import_api.trace.getTracer("Next.js Runtime");
3271
+ const tracer = trace.getTracer("Next.js Runtime");
3270
3272
  if (!nextHandler) {
3271
3273
  await tracer.startActiveSpan("initialize next server", async (span) => {
3272
3274
  const { getRunConfig, setRunConfig } = await import("../config.js");
@@ -3303,7 +3305,7 @@ var server_default = async (request) => {
3303
3305
  span.recordException(error);
3304
3306
  span.setAttribute("http.status_code", 500);
3305
3307
  span.setStatus({
3306
- code: import_api.SpanStatusCode.ERROR,
3308
+ code: SpanStatusCode.ERROR,
3307
3309
  message: error instanceof Error ? error.message : String(error)
3308
3310
  });
3309
3311
  span.end();