@netlify/plugin-nextjs 5.1.1 → 5.2.0
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.
- package/dist/build/advanced-api-routes.js +121 -4
- package/dist/build/cache.js +25 -4
- package/dist/build/content/prerendered.js +234 -8
- package/dist/build/content/server.js +259 -14
- package/dist/build/content/static.js +96 -11
- package/dist/build/functions/edge.js +511 -5
- package/dist/build/functions/server.js +131 -12
- package/dist/build/image-cdn.js +1626 -3
- package/dist/build/plugin-context.js +236 -5
- package/dist/build/templates/handler-monorepo.tmpl.js +3 -0
- package/dist/build/templates/handler.tmpl.js +3 -0
- package/dist/build/verification.js +81 -8
- package/dist/esm-chunks/{package-YB7ERSH4.js → package-ZBRSUKN7.js} +6 -6
- package/dist/index.js +25 -36
- package/dist/run/config.js +25 -6
- package/dist/run/constants.js +7 -5
- package/dist/run/handlers/cache.cjs +6 -567
- package/dist/run/handlers/request-context.cjs +8 -1
- package/dist/run/handlers/server.js +20 -22
- package/dist/run/handlers/tracing.js +1 -1
- package/dist/run/headers.js +198 -8
- package/dist/run/next.cjs +49 -567
- package/dist/{esm-chunks/chunk-PMRBBOBY.js → run/regional-blob-store.cjs} +117 -263
- package/dist/run/revalidate.js +17 -3
- package/dist/run/systemlog.js +94 -3
- package/dist/shared/blobkey.js +15 -3
- package/package.json +1 -1
- package/dist/esm-chunks/chunk-3NYX5FXN.js +0 -188
- package/dist/esm-chunks/chunk-3SUDZQ7L.js +0 -40
- package/dist/esm-chunks/chunk-72ZI2IVI.js +0 -36
- package/dist/esm-chunks/chunk-74THQNRG.js +0 -110
- package/dist/esm-chunks/chunk-BG455SFE.js +0 -133
- package/dist/esm-chunks/chunk-F5VQRN6L.js +0 -127
- package/dist/esm-chunks/chunk-HYBEXB2Z.js +0 -105
- package/dist/esm-chunks/chunk-MCEOSJH6.js +0 -1637
- package/dist/esm-chunks/chunk-MRD3XSKD.js +0 -248
- package/dist/esm-chunks/chunk-OBKVBMAL.js +0 -524
- package/dist/esm-chunks/chunk-PH26UF2W.js +0 -86
- package/dist/esm-chunks/chunk-RL4K4CVH.js +0 -27
- package/dist/esm-chunks/chunk-TYCYFZ22.js +0 -25
- package/dist/esm-chunks/chunk-UYKENJEU.js +0 -19
- package/dist/esm-chunks/chunk-ZKJEJNSJ.js +0 -278
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
var require = await (async () => {
|
|
3
|
-
var { createRequire } = await import("node:module");
|
|
4
|
-
return createRequire(import.meta.url);
|
|
5
|
-
})();
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
__commonJS,
|
|
9
|
-
__require,
|
|
10
|
-
__toESM
|
|
11
|
-
} from "./chunk-5JVNISGM.js";
|
|
12
|
-
|
|
13
|
-
// node_modules/@netlify/functions/dist/lib/system_logger.js
|
|
14
|
-
var require_system_logger = __commonJS({
|
|
15
|
-
"node_modules/@netlify/functions/dist/lib/system_logger.js"(exports) {
|
|
16
|
-
"use strict";
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.systemLogger = exports.LogLevel = void 0;
|
|
19
|
-
var process_1 = __require("process");
|
|
20
|
-
var systemLogTag = "__nfSystemLog";
|
|
21
|
-
var serializeError = (error) => {
|
|
22
|
-
const cause = error?.cause instanceof Error ? serializeError(error.cause) : error.cause;
|
|
23
|
-
return {
|
|
24
|
-
error: error.message,
|
|
25
|
-
error_cause: cause,
|
|
26
|
-
error_stack: error.stack
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
var LogLevel2;
|
|
30
|
-
(function(LogLevel3) {
|
|
31
|
-
LogLevel3[LogLevel3["Debug"] = 1] = "Debug";
|
|
32
|
-
LogLevel3[LogLevel3["Log"] = 2] = "Log";
|
|
33
|
-
LogLevel3[LogLevel3["Error"] = 3] = "Error";
|
|
34
|
-
})(LogLevel2 = exports.LogLevel || (exports.LogLevel = {}));
|
|
35
|
-
var SystemLogger = class _SystemLogger {
|
|
36
|
-
fields;
|
|
37
|
-
logLevel;
|
|
38
|
-
constructor(fields = {}, logLevel = LogLevel2.Log) {
|
|
39
|
-
this.fields = fields;
|
|
40
|
-
this.logLevel = logLevel;
|
|
41
|
-
}
|
|
42
|
-
doLog(logger, message) {
|
|
43
|
-
if (process_1.env.NETLIFY_DEV && !process_1.env.NETLIFY_ENABLE_SYSTEM_LOGGING) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
logger(systemLogTag, JSON.stringify({ msg: message, fields: this.fields }));
|
|
47
|
-
}
|
|
48
|
-
log(message) {
|
|
49
|
-
if (this.logLevel > LogLevel2.Log) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
this.doLog(console.log, message);
|
|
53
|
-
}
|
|
54
|
-
debug(message) {
|
|
55
|
-
if (this.logLevel > LogLevel2.Debug) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
this.doLog(console.debug, message);
|
|
59
|
-
}
|
|
60
|
-
error(message) {
|
|
61
|
-
if (this.logLevel > LogLevel2.Error) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
this.doLog(console.error, message);
|
|
65
|
-
}
|
|
66
|
-
withLogLevel(level) {
|
|
67
|
-
return new _SystemLogger(this.fields, level);
|
|
68
|
-
}
|
|
69
|
-
withFields(fields) {
|
|
70
|
-
return new _SystemLogger({
|
|
71
|
-
...this.fields,
|
|
72
|
-
...fields
|
|
73
|
-
}, this.logLevel);
|
|
74
|
-
}
|
|
75
|
-
withError(error) {
|
|
76
|
-
const fields = error instanceof Error ? serializeError(error) : { error };
|
|
77
|
-
return this.withFields(fields);
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
exports.systemLogger = new SystemLogger();
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
// node_modules/@netlify/functions/dist/internal.js
|
|
85
|
-
var require_internal = __commonJS({
|
|
86
|
-
"node_modules/@netlify/functions/dist/internal.js"(exports) {
|
|
87
|
-
"use strict";
|
|
88
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
89
|
-
exports.LogLevel = exports.systemLogger = void 0;
|
|
90
|
-
var system_logger_js_1 = require_system_logger();
|
|
91
|
-
Object.defineProperty(exports, "systemLogger", { enumerable: true, get: function() {
|
|
92
|
-
return system_logger_js_1.systemLogger;
|
|
93
|
-
} });
|
|
94
|
-
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function() {
|
|
95
|
-
return system_logger_js_1.LogLevel;
|
|
96
|
-
} });
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
// src/run/systemlog.ts
|
|
101
|
-
var import_internal = __toESM(require_internal(), 1);
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
import_internal
|
|
105
|
-
};
|