next-tinacms-azure 0.0.0-ee8d9a3-20250429131017 → 0.0.0-f1cec43-20251216232909
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/auth.js +203 -214
- package/dist/delivery-handlers.js +442 -139
- package/dist/handlers.js +439 -139
- package/dist/index.js +138 -142
- package/package.json +7 -7
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -147
- package/dist/index.mjs.map +0 -1
|
@@ -7,10 +7,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
7
7
|
var __commonJS = (cb, mod) => function __require() {
|
|
8
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
9
|
};
|
|
10
|
-
var __export = (target, all) => {
|
|
11
|
-
for (var name in all)
|
|
12
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
-
};
|
|
14
10
|
var __copyProps = (to, from, except, desc) => {
|
|
15
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -27,16 +23,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
23
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
24
|
mod
|
|
29
25
|
));
|
|
30
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
26
|
|
|
32
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
27
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
|
|
33
28
|
var require_detect_domain_locale = __commonJS({
|
|
34
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
29
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"(exports) {
|
|
35
30
|
"use strict";
|
|
36
|
-
Object.defineProperty(
|
|
31
|
+
Object.defineProperty(exports, "__esModule", {
|
|
37
32
|
value: true
|
|
38
33
|
});
|
|
39
|
-
Object.defineProperty(
|
|
34
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
40
35
|
enumerable: true,
|
|
41
36
|
get: function() {
|
|
42
37
|
return detectDomainLocale;
|
|
@@ -58,14 +53,14 @@ var require_detect_domain_locale = __commonJS({
|
|
|
58
53
|
}
|
|
59
54
|
});
|
|
60
55
|
|
|
61
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
56
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
|
|
62
57
|
var require_remove_trailing_slash = __commonJS({
|
|
63
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
58
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"(exports) {
|
|
64
59
|
"use strict";
|
|
65
|
-
Object.defineProperty(
|
|
60
|
+
Object.defineProperty(exports, "__esModule", {
|
|
66
61
|
value: true
|
|
67
62
|
});
|
|
68
|
-
Object.defineProperty(
|
|
63
|
+
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
69
64
|
enumerable: true,
|
|
70
65
|
get: function() {
|
|
71
66
|
return removeTrailingSlash;
|
|
@@ -77,14 +72,14 @@ var require_remove_trailing_slash = __commonJS({
|
|
|
77
72
|
}
|
|
78
73
|
});
|
|
79
74
|
|
|
80
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
75
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/parse-path.js
|
|
81
76
|
var require_parse_path = __commonJS({
|
|
82
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
77
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/parse-path.js"(exports) {
|
|
83
78
|
"use strict";
|
|
84
|
-
Object.defineProperty(
|
|
79
|
+
Object.defineProperty(exports, "__esModule", {
|
|
85
80
|
value: true
|
|
86
81
|
});
|
|
87
|
-
Object.defineProperty(
|
|
82
|
+
Object.defineProperty(exports, "parsePath", {
|
|
88
83
|
enumerable: true,
|
|
89
84
|
get: function() {
|
|
90
85
|
return parsePath;
|
|
@@ -110,14 +105,14 @@ var require_parse_path = __commonJS({
|
|
|
110
105
|
}
|
|
111
106
|
});
|
|
112
107
|
|
|
113
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
108
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
|
|
114
109
|
var require_add_path_prefix = __commonJS({
|
|
115
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
110
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"(exports) {
|
|
116
111
|
"use strict";
|
|
117
|
-
Object.defineProperty(
|
|
112
|
+
Object.defineProperty(exports, "__esModule", {
|
|
118
113
|
value: true
|
|
119
114
|
});
|
|
120
|
-
Object.defineProperty(
|
|
115
|
+
Object.defineProperty(exports, "addPathPrefix", {
|
|
121
116
|
enumerable: true,
|
|
122
117
|
get: function() {
|
|
123
118
|
return addPathPrefix;
|
|
@@ -134,14 +129,14 @@ var require_add_path_prefix = __commonJS({
|
|
|
134
129
|
}
|
|
135
130
|
});
|
|
136
131
|
|
|
137
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
132
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js
|
|
138
133
|
var require_add_path_suffix = __commonJS({
|
|
139
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
134
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js"(exports) {
|
|
140
135
|
"use strict";
|
|
141
|
-
Object.defineProperty(
|
|
136
|
+
Object.defineProperty(exports, "__esModule", {
|
|
142
137
|
value: true
|
|
143
138
|
});
|
|
144
|
-
Object.defineProperty(
|
|
139
|
+
Object.defineProperty(exports, "addPathSuffix", {
|
|
145
140
|
enumerable: true,
|
|
146
141
|
get: function() {
|
|
147
142
|
return addPathSuffix;
|
|
@@ -158,14 +153,14 @@ var require_add_path_suffix = __commonJS({
|
|
|
158
153
|
}
|
|
159
154
|
});
|
|
160
155
|
|
|
161
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
156
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
|
|
162
157
|
var require_path_has_prefix = __commonJS({
|
|
163
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
158
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"(exports) {
|
|
164
159
|
"use strict";
|
|
165
|
-
Object.defineProperty(
|
|
160
|
+
Object.defineProperty(exports, "__esModule", {
|
|
166
161
|
value: true
|
|
167
162
|
});
|
|
168
|
-
Object.defineProperty(
|
|
163
|
+
Object.defineProperty(exports, "pathHasPrefix", {
|
|
169
164
|
enumerable: true,
|
|
170
165
|
get: function() {
|
|
171
166
|
return pathHasPrefix;
|
|
@@ -182,14 +177,14 @@ var require_path_has_prefix = __commonJS({
|
|
|
182
177
|
}
|
|
183
178
|
});
|
|
184
179
|
|
|
185
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
180
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/add-locale.js
|
|
186
181
|
var require_add_locale = __commonJS({
|
|
187
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
182
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/add-locale.js"(exports) {
|
|
188
183
|
"use strict";
|
|
189
|
-
Object.defineProperty(
|
|
184
|
+
Object.defineProperty(exports, "__esModule", {
|
|
190
185
|
value: true
|
|
191
186
|
});
|
|
192
|
-
Object.defineProperty(
|
|
187
|
+
Object.defineProperty(exports, "addLocale", {
|
|
193
188
|
enumerable: true,
|
|
194
189
|
get: function() {
|
|
195
190
|
return addLocale;
|
|
@@ -209,14 +204,14 @@ var require_add_locale = __commonJS({
|
|
|
209
204
|
}
|
|
210
205
|
});
|
|
211
206
|
|
|
212
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
207
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js
|
|
213
208
|
var require_format_next_pathname_info = __commonJS({
|
|
214
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
209
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js"(exports) {
|
|
215
210
|
"use strict";
|
|
216
|
-
Object.defineProperty(
|
|
211
|
+
Object.defineProperty(exports, "__esModule", {
|
|
217
212
|
value: true
|
|
218
213
|
});
|
|
219
|
-
Object.defineProperty(
|
|
214
|
+
Object.defineProperty(exports, "formatNextPathnameInfo", {
|
|
220
215
|
enumerable: true,
|
|
221
216
|
get: function() {
|
|
222
217
|
return formatNextPathnameInfo;
|
|
@@ -240,14 +235,14 @@ var require_format_next_pathname_info = __commonJS({
|
|
|
240
235
|
}
|
|
241
236
|
});
|
|
242
237
|
|
|
243
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
238
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/get-hostname.js
|
|
244
239
|
var require_get_hostname = __commonJS({
|
|
245
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
240
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/get-hostname.js"(exports) {
|
|
246
241
|
"use strict";
|
|
247
|
-
Object.defineProperty(
|
|
242
|
+
Object.defineProperty(exports, "__esModule", {
|
|
248
243
|
value: true
|
|
249
244
|
});
|
|
250
|
-
Object.defineProperty(
|
|
245
|
+
Object.defineProperty(exports, "getHostname", {
|
|
251
246
|
enumerable: true,
|
|
252
247
|
get: function() {
|
|
253
248
|
return getHostname;
|
|
@@ -265,14 +260,14 @@ var require_get_hostname = __commonJS({
|
|
|
265
260
|
}
|
|
266
261
|
});
|
|
267
262
|
|
|
268
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
263
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
|
|
269
264
|
var require_normalize_locale_path = __commonJS({
|
|
270
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
265
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"(exports) {
|
|
271
266
|
"use strict";
|
|
272
|
-
Object.defineProperty(
|
|
267
|
+
Object.defineProperty(exports, "__esModule", {
|
|
273
268
|
value: true
|
|
274
269
|
});
|
|
275
|
-
Object.defineProperty(
|
|
270
|
+
Object.defineProperty(exports, "normalizeLocalePath", {
|
|
276
271
|
enumerable: true,
|
|
277
272
|
get: function() {
|
|
278
273
|
return normalizeLocalePath;
|
|
@@ -298,14 +293,14 @@ var require_normalize_locale_path = __commonJS({
|
|
|
298
293
|
}
|
|
299
294
|
});
|
|
300
295
|
|
|
301
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
296
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js
|
|
302
297
|
var require_remove_path_prefix = __commonJS({
|
|
303
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
298
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js"(exports) {
|
|
304
299
|
"use strict";
|
|
305
|
-
Object.defineProperty(
|
|
300
|
+
Object.defineProperty(exports, "__esModule", {
|
|
306
301
|
value: true
|
|
307
302
|
});
|
|
308
|
-
Object.defineProperty(
|
|
303
|
+
Object.defineProperty(exports, "removePathPrefix", {
|
|
309
304
|
enumerable: true,
|
|
310
305
|
get: function() {
|
|
311
306
|
return removePathPrefix;
|
|
@@ -325,14 +320,14 @@ var require_remove_path_prefix = __commonJS({
|
|
|
325
320
|
}
|
|
326
321
|
});
|
|
327
322
|
|
|
328
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
323
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js
|
|
329
324
|
var require_get_next_pathname_info = __commonJS({
|
|
330
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
325
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js"(exports) {
|
|
331
326
|
"use strict";
|
|
332
|
-
Object.defineProperty(
|
|
327
|
+
Object.defineProperty(exports, "__esModule", {
|
|
333
328
|
value: true
|
|
334
329
|
});
|
|
335
|
-
Object.defineProperty(
|
|
330
|
+
Object.defineProperty(exports, "getNextPathnameInfo", {
|
|
336
331
|
enumerable: true,
|
|
337
332
|
get: function() {
|
|
338
333
|
return getNextPathnameInfo;
|
|
@@ -379,14 +374,14 @@ var require_get_next_pathname_info = __commonJS({
|
|
|
379
374
|
}
|
|
380
375
|
});
|
|
381
376
|
|
|
382
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
377
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/next-url.js
|
|
383
378
|
var require_next_url = __commonJS({
|
|
384
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
379
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/next-url.js"(exports) {
|
|
385
380
|
"use strict";
|
|
386
|
-
Object.defineProperty(
|
|
381
|
+
Object.defineProperty(exports, "__esModule", {
|
|
387
382
|
value: true
|
|
388
383
|
});
|
|
389
|
-
Object.defineProperty(
|
|
384
|
+
Object.defineProperty(exports, "NextURL", {
|
|
390
385
|
enumerable: true,
|
|
391
386
|
get: function() {
|
|
392
387
|
return NextURL;
|
|
@@ -412,14 +407,13 @@ var require_next_url = __commonJS({
|
|
|
412
407
|
options = opts || baseOrOpts || {};
|
|
413
408
|
}
|
|
414
409
|
this[Internal] = {
|
|
415
|
-
url: parseURL(input, base
|
|
410
|
+
url: parseURL(input, base ?? options.base),
|
|
416
411
|
options,
|
|
417
412
|
basePath: ""
|
|
418
413
|
};
|
|
419
414
|
this.analyze();
|
|
420
415
|
}
|
|
421
416
|
analyze() {
|
|
422
|
-
var _a, _b;
|
|
423
417
|
var _this_Internal_options_nextConfig_i18n, _this_Internal_options_nextConfig, _this_Internal_domainLocale, _this_Internal_options_nextConfig_i18n1, _this_Internal_options_nextConfig1;
|
|
424
418
|
const info = (0, _getnextpathnameinfo.getNextPathnameInfo)(this[Internal].url.pathname, {
|
|
425
419
|
nextConfig: this[Internal].options.nextConfig,
|
|
@@ -431,9 +425,9 @@ var require_next_url = __commonJS({
|
|
|
431
425
|
const defaultLocale = ((_this_Internal_domainLocale = this[Internal].domainLocale) == null ? void 0 : _this_Internal_domainLocale.defaultLocale) || ((_this_Internal_options_nextConfig1 = this[Internal].options.nextConfig) == null ? void 0 : (_this_Internal_options_nextConfig_i18n1 = _this_Internal_options_nextConfig1.i18n) == null ? void 0 : _this_Internal_options_nextConfig_i18n1.defaultLocale);
|
|
432
426
|
this[Internal].url.pathname = info.pathname;
|
|
433
427
|
this[Internal].defaultLocale = defaultLocale;
|
|
434
|
-
this[Internal].basePath =
|
|
428
|
+
this[Internal].basePath = info.basePath ?? "";
|
|
435
429
|
this[Internal].buildId = info.buildId;
|
|
436
|
-
this[Internal].locale =
|
|
430
|
+
this[Internal].locale = info.locale ?? defaultLocale;
|
|
437
431
|
this[Internal].trailingSlash = info.trailingSlash;
|
|
438
432
|
}
|
|
439
433
|
formatPathname() {
|
|
@@ -456,8 +450,7 @@ var require_next_url = __commonJS({
|
|
|
456
450
|
this[Internal].buildId = buildId;
|
|
457
451
|
}
|
|
458
452
|
get locale() {
|
|
459
|
-
|
|
460
|
-
return (_a = this[Internal].locale) != null ? _a : "";
|
|
453
|
+
return this[Internal].locale ?? "";
|
|
461
454
|
}
|
|
462
455
|
set locale(locale) {
|
|
463
456
|
var _this_Internal_options_nextConfig_i18n, _this_Internal_options_nextConfig;
|
|
@@ -576,11 +569,308 @@ var require_next_url = __commonJS({
|
|
|
576
569
|
}
|
|
577
570
|
});
|
|
578
571
|
|
|
579
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
572
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/lib/constants.js
|
|
573
|
+
var require_constants = __commonJS({
|
|
574
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/lib/constants.js"(exports) {
|
|
575
|
+
"use strict";
|
|
576
|
+
Object.defineProperty(exports, "__esModule", {
|
|
577
|
+
value: true
|
|
578
|
+
});
|
|
579
|
+
function _export(target, all) {
|
|
580
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
581
|
+
enumerable: true,
|
|
582
|
+
get: all[name]
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
_export(exports, {
|
|
586
|
+
ACTION_SUFFIX: function() {
|
|
587
|
+
return ACTION_SUFFIX;
|
|
588
|
+
},
|
|
589
|
+
APP_DIR_ALIAS: function() {
|
|
590
|
+
return APP_DIR_ALIAS;
|
|
591
|
+
},
|
|
592
|
+
CACHE_ONE_YEAR: function() {
|
|
593
|
+
return CACHE_ONE_YEAR;
|
|
594
|
+
},
|
|
595
|
+
DOT_NEXT_ALIAS: function() {
|
|
596
|
+
return DOT_NEXT_ALIAS;
|
|
597
|
+
},
|
|
598
|
+
ESLINT_DEFAULT_DIRS: function() {
|
|
599
|
+
return ESLINT_DEFAULT_DIRS;
|
|
600
|
+
},
|
|
601
|
+
GSP_NO_RETURNED_VALUE: function() {
|
|
602
|
+
return GSP_NO_RETURNED_VALUE;
|
|
603
|
+
},
|
|
604
|
+
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
605
|
+
return GSSP_COMPONENT_MEMBER_ERROR;
|
|
606
|
+
},
|
|
607
|
+
GSSP_NO_RETURNED_VALUE: function() {
|
|
608
|
+
return GSSP_NO_RETURNED_VALUE;
|
|
609
|
+
},
|
|
610
|
+
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
611
|
+
return INSTRUMENTATION_HOOK_FILENAME;
|
|
612
|
+
},
|
|
613
|
+
MIDDLEWARE_FILENAME: function() {
|
|
614
|
+
return MIDDLEWARE_FILENAME;
|
|
615
|
+
},
|
|
616
|
+
MIDDLEWARE_LOCATION_REGEXP: function() {
|
|
617
|
+
return MIDDLEWARE_LOCATION_REGEXP;
|
|
618
|
+
},
|
|
619
|
+
NEXT_BODY_SUFFIX: function() {
|
|
620
|
+
return NEXT_BODY_SUFFIX;
|
|
621
|
+
},
|
|
622
|
+
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
623
|
+
return NEXT_CACHE_IMPLICIT_TAG_ID;
|
|
624
|
+
},
|
|
625
|
+
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
626
|
+
return NEXT_CACHE_REVALIDATED_TAGS_HEADER;
|
|
627
|
+
},
|
|
628
|
+
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
629
|
+
return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER;
|
|
630
|
+
},
|
|
631
|
+
NEXT_CACHE_SOFT_TAGS_HEADER: function() {
|
|
632
|
+
return NEXT_CACHE_SOFT_TAGS_HEADER;
|
|
633
|
+
},
|
|
634
|
+
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
635
|
+
return NEXT_CACHE_SOFT_TAG_MAX_LENGTH;
|
|
636
|
+
},
|
|
637
|
+
NEXT_CACHE_TAGS_HEADER: function() {
|
|
638
|
+
return NEXT_CACHE_TAGS_HEADER;
|
|
639
|
+
},
|
|
640
|
+
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
641
|
+
return NEXT_CACHE_TAG_MAX_ITEMS;
|
|
642
|
+
},
|
|
643
|
+
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
644
|
+
return NEXT_CACHE_TAG_MAX_LENGTH;
|
|
645
|
+
},
|
|
646
|
+
NEXT_DATA_SUFFIX: function() {
|
|
647
|
+
return NEXT_DATA_SUFFIX;
|
|
648
|
+
},
|
|
649
|
+
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
650
|
+
return NEXT_INTERCEPTION_MARKER_PREFIX;
|
|
651
|
+
},
|
|
652
|
+
NEXT_META_SUFFIX: function() {
|
|
653
|
+
return NEXT_META_SUFFIX;
|
|
654
|
+
},
|
|
655
|
+
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
656
|
+
return NEXT_QUERY_PARAM_PREFIX;
|
|
657
|
+
},
|
|
658
|
+
NON_STANDARD_NODE_ENV: function() {
|
|
659
|
+
return NON_STANDARD_NODE_ENV;
|
|
660
|
+
},
|
|
661
|
+
PAGES_DIR_ALIAS: function() {
|
|
662
|
+
return PAGES_DIR_ALIAS;
|
|
663
|
+
},
|
|
664
|
+
PRERENDER_REVALIDATE_HEADER: function() {
|
|
665
|
+
return PRERENDER_REVALIDATE_HEADER;
|
|
666
|
+
},
|
|
667
|
+
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
668
|
+
return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
|
|
669
|
+
},
|
|
670
|
+
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
671
|
+
return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
|
|
672
|
+
},
|
|
673
|
+
ROOT_DIR_ALIAS: function() {
|
|
674
|
+
return ROOT_DIR_ALIAS;
|
|
675
|
+
},
|
|
676
|
+
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
677
|
+
return RSC_ACTION_CLIENT_WRAPPER_ALIAS;
|
|
678
|
+
},
|
|
679
|
+
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
680
|
+
return RSC_ACTION_ENCRYPTION_ALIAS;
|
|
681
|
+
},
|
|
682
|
+
RSC_ACTION_PROXY_ALIAS: function() {
|
|
683
|
+
return RSC_ACTION_PROXY_ALIAS;
|
|
684
|
+
},
|
|
685
|
+
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
686
|
+
return RSC_ACTION_VALIDATE_ALIAS;
|
|
687
|
+
},
|
|
688
|
+
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
689
|
+
return RSC_MOD_REF_PROXY_ALIAS;
|
|
690
|
+
},
|
|
691
|
+
RSC_PREFETCH_SUFFIX: function() {
|
|
692
|
+
return RSC_PREFETCH_SUFFIX;
|
|
693
|
+
},
|
|
694
|
+
RSC_SUFFIX: function() {
|
|
695
|
+
return RSC_SUFFIX;
|
|
696
|
+
},
|
|
697
|
+
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
698
|
+
return SERVER_PROPS_EXPORT_ERROR;
|
|
699
|
+
},
|
|
700
|
+
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
701
|
+
return SERVER_PROPS_GET_INIT_PROPS_CONFLICT;
|
|
702
|
+
},
|
|
703
|
+
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
704
|
+
return SERVER_PROPS_SSG_CONFLICT;
|
|
705
|
+
},
|
|
706
|
+
SERVER_RUNTIME: function() {
|
|
707
|
+
return SERVER_RUNTIME;
|
|
708
|
+
},
|
|
709
|
+
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
710
|
+
return SSG_FALLBACK_EXPORT_ERROR;
|
|
711
|
+
},
|
|
712
|
+
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
713
|
+
return SSG_GET_INITIAL_PROPS_CONFLICT;
|
|
714
|
+
},
|
|
715
|
+
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
716
|
+
return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
|
|
717
|
+
},
|
|
718
|
+
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
719
|
+
return UNSTABLE_REVALIDATE_RENAME_ERROR;
|
|
720
|
+
},
|
|
721
|
+
WEBPACK_LAYERS: function() {
|
|
722
|
+
return WEBPACK_LAYERS;
|
|
723
|
+
},
|
|
724
|
+
WEBPACK_RESOURCE_QUERIES: function() {
|
|
725
|
+
return WEBPACK_RESOURCE_QUERIES;
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
var NEXT_QUERY_PARAM_PREFIX = "nxtP";
|
|
729
|
+
var NEXT_INTERCEPTION_MARKER_PREFIX = "nxtI";
|
|
730
|
+
var PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
|
|
731
|
+
var PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = "x-prerender-revalidate-if-generated";
|
|
732
|
+
var RSC_PREFETCH_SUFFIX = ".prefetch.rsc";
|
|
733
|
+
var RSC_SUFFIX = ".rsc";
|
|
734
|
+
var ACTION_SUFFIX = ".action";
|
|
735
|
+
var NEXT_DATA_SUFFIX = ".json";
|
|
736
|
+
var NEXT_META_SUFFIX = ".meta";
|
|
737
|
+
var NEXT_BODY_SUFFIX = ".body";
|
|
738
|
+
var NEXT_CACHE_TAGS_HEADER = "x-next-cache-tags";
|
|
739
|
+
var NEXT_CACHE_SOFT_TAGS_HEADER = "x-next-cache-soft-tags";
|
|
740
|
+
var NEXT_CACHE_REVALIDATED_TAGS_HEADER = "x-next-revalidated-tags";
|
|
741
|
+
var NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER = "x-next-revalidate-tag-token";
|
|
742
|
+
var NEXT_CACHE_TAG_MAX_ITEMS = 128;
|
|
743
|
+
var NEXT_CACHE_TAG_MAX_LENGTH = 256;
|
|
744
|
+
var NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024;
|
|
745
|
+
var NEXT_CACHE_IMPLICIT_TAG_ID = "_N_T_";
|
|
746
|
+
var CACHE_ONE_YEAR = 31536e3;
|
|
747
|
+
var MIDDLEWARE_FILENAME = "middleware";
|
|
748
|
+
var MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`;
|
|
749
|
+
var INSTRUMENTATION_HOOK_FILENAME = "instrumentation";
|
|
750
|
+
var PAGES_DIR_ALIAS = "private-next-pages";
|
|
751
|
+
var DOT_NEXT_ALIAS = "private-dot-next";
|
|
752
|
+
var ROOT_DIR_ALIAS = "private-next-root-dir";
|
|
753
|
+
var APP_DIR_ALIAS = "private-next-app-dir";
|
|
754
|
+
var RSC_MOD_REF_PROXY_ALIAS = "private-next-rsc-mod-ref-proxy";
|
|
755
|
+
var RSC_ACTION_VALIDATE_ALIAS = "private-next-rsc-action-validate";
|
|
756
|
+
var RSC_ACTION_PROXY_ALIAS = "private-next-rsc-server-reference";
|
|
757
|
+
var RSC_ACTION_ENCRYPTION_ALIAS = "private-next-rsc-action-encryption";
|
|
758
|
+
var RSC_ACTION_CLIENT_WRAPPER_ALIAS = "private-next-rsc-action-client-wrapper";
|
|
759
|
+
var PUBLIC_DIR_MIDDLEWARE_CONFLICT = `You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict`;
|
|
760
|
+
var SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`;
|
|
761
|
+
var SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`;
|
|
762
|
+
var SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`;
|
|
763
|
+
var STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`;
|
|
764
|
+
var SERVER_PROPS_EXPORT_ERROR = `pages with \`getServerSideProps\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`;
|
|
765
|
+
var GSP_NO_RETURNED_VALUE = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?";
|
|
766
|
+
var GSSP_NO_RETURNED_VALUE = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?";
|
|
767
|
+
var UNSTABLE_REVALIDATE_RENAME_ERROR = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.";
|
|
768
|
+
var GSSP_COMPONENT_MEMBER_ERROR = `can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member`;
|
|
769
|
+
var NON_STANDARD_NODE_ENV = `You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env`;
|
|
770
|
+
var SSG_FALLBACK_EXPORT_ERROR = `Pages with \`fallback\` enabled in \`getStaticPaths\` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export`;
|
|
771
|
+
var ESLINT_DEFAULT_DIRS = [
|
|
772
|
+
"app",
|
|
773
|
+
"pages",
|
|
774
|
+
"components",
|
|
775
|
+
"lib",
|
|
776
|
+
"src"
|
|
777
|
+
];
|
|
778
|
+
var SERVER_RUNTIME = {
|
|
779
|
+
edge: "edge",
|
|
780
|
+
experimentalEdge: "experimental-edge",
|
|
781
|
+
nodejs: "nodejs"
|
|
782
|
+
};
|
|
783
|
+
var WEBPACK_LAYERS_NAMES = {
|
|
784
|
+
/**
|
|
785
|
+
* The layer for the shared code between the client and server bundles.
|
|
786
|
+
*/
|
|
787
|
+
shared: "shared",
|
|
788
|
+
/**
|
|
789
|
+
* React Server Components layer (rsc).
|
|
790
|
+
*/
|
|
791
|
+
reactServerComponents: "rsc",
|
|
792
|
+
/**
|
|
793
|
+
* Server Side Rendering layer for app (ssr).
|
|
794
|
+
*/
|
|
795
|
+
serverSideRendering: "ssr",
|
|
796
|
+
/**
|
|
797
|
+
* The browser client bundle layer for actions.
|
|
798
|
+
*/
|
|
799
|
+
actionBrowser: "action-browser",
|
|
800
|
+
/**
|
|
801
|
+
* The layer for the API routes.
|
|
802
|
+
*/
|
|
803
|
+
api: "api",
|
|
804
|
+
/**
|
|
805
|
+
* The layer for the middleware code.
|
|
806
|
+
*/
|
|
807
|
+
middleware: "middleware",
|
|
808
|
+
/**
|
|
809
|
+
* The layer for the instrumentation hooks.
|
|
810
|
+
*/
|
|
811
|
+
instrument: "instrument",
|
|
812
|
+
/**
|
|
813
|
+
* The layer for assets on the edge.
|
|
814
|
+
*/
|
|
815
|
+
edgeAsset: "edge-asset",
|
|
816
|
+
/**
|
|
817
|
+
* The browser client bundle layer for App directory.
|
|
818
|
+
*/
|
|
819
|
+
appPagesBrowser: "app-pages-browser",
|
|
820
|
+
/**
|
|
821
|
+
* The server bundle layer for metadata routes.
|
|
822
|
+
*/
|
|
823
|
+
appMetadataRoute: "app-metadata-route",
|
|
824
|
+
/**
|
|
825
|
+
* The layer for the server bundle for App Route handlers.
|
|
826
|
+
*/
|
|
827
|
+
appRouteHandler: "app-route-handler"
|
|
828
|
+
};
|
|
829
|
+
var WEBPACK_LAYERS = {
|
|
830
|
+
...WEBPACK_LAYERS_NAMES,
|
|
831
|
+
GROUP: {
|
|
832
|
+
serverOnly: [
|
|
833
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
834
|
+
WEBPACK_LAYERS_NAMES.actionBrowser,
|
|
835
|
+
WEBPACK_LAYERS_NAMES.appMetadataRoute,
|
|
836
|
+
WEBPACK_LAYERS_NAMES.appRouteHandler,
|
|
837
|
+
WEBPACK_LAYERS_NAMES.instrument
|
|
838
|
+
],
|
|
839
|
+
clientOnly: [
|
|
840
|
+
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
841
|
+
WEBPACK_LAYERS_NAMES.appPagesBrowser
|
|
842
|
+
],
|
|
843
|
+
nonClientServerTarget: [
|
|
844
|
+
// middleware and pages api
|
|
845
|
+
WEBPACK_LAYERS_NAMES.middleware,
|
|
846
|
+
WEBPACK_LAYERS_NAMES.api
|
|
847
|
+
],
|
|
848
|
+
app: [
|
|
849
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
850
|
+
WEBPACK_LAYERS_NAMES.actionBrowser,
|
|
851
|
+
WEBPACK_LAYERS_NAMES.appMetadataRoute,
|
|
852
|
+
WEBPACK_LAYERS_NAMES.appRouteHandler,
|
|
853
|
+
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
854
|
+
WEBPACK_LAYERS_NAMES.appPagesBrowser,
|
|
855
|
+
WEBPACK_LAYERS_NAMES.shared,
|
|
856
|
+
WEBPACK_LAYERS_NAMES.instrument
|
|
857
|
+
]
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
var WEBPACK_RESOURCE_QUERIES = {
|
|
861
|
+
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
862
|
+
metadata: "__next_metadata__",
|
|
863
|
+
metadataRoute: "__next_metadata_route__",
|
|
864
|
+
metadataImageMeta: "__next_metadata_image_meta__"
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
|
|
869
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/utils.js
|
|
580
870
|
var require_utils = __commonJS({
|
|
581
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
871
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/utils.js"(exports) {
|
|
582
872
|
"use strict";
|
|
583
|
-
Object.defineProperty(
|
|
873
|
+
Object.defineProperty(exports, "__esModule", {
|
|
584
874
|
value: true
|
|
585
875
|
});
|
|
586
876
|
function _export(target, all) {
|
|
@@ -589,10 +879,13 @@ var require_utils = __commonJS({
|
|
|
589
879
|
get: all[name]
|
|
590
880
|
});
|
|
591
881
|
}
|
|
592
|
-
_export(
|
|
882
|
+
_export(exports, {
|
|
593
883
|
fromNodeOutgoingHttpHeaders: function() {
|
|
594
884
|
return fromNodeOutgoingHttpHeaders;
|
|
595
885
|
},
|
|
886
|
+
normalizeNextQueryParam: function() {
|
|
887
|
+
return normalizeNextQueryParam;
|
|
888
|
+
},
|
|
596
889
|
splitCookiesString: function() {
|
|
597
890
|
return splitCookiesString;
|
|
598
891
|
},
|
|
@@ -603,6 +896,7 @@ var require_utils = __commonJS({
|
|
|
603
896
|
return validateURL;
|
|
604
897
|
}
|
|
605
898
|
});
|
|
899
|
+
var _constants = require_constants();
|
|
606
900
|
function fromNodeOutgoingHttpHeaders(nodeHeaders) {
|
|
607
901
|
const headers = new Headers();
|
|
608
902
|
for (let [key, value] of Object.entries(nodeHeaders)) {
|
|
@@ -692,14 +986,26 @@ var require_utils = __commonJS({
|
|
|
692
986
|
});
|
|
693
987
|
}
|
|
694
988
|
}
|
|
989
|
+
function normalizeNextQueryParam(key, onKeyNormalized) {
|
|
990
|
+
const prefixes = [
|
|
991
|
+
_constants.NEXT_QUERY_PARAM_PREFIX,
|
|
992
|
+
_constants.NEXT_INTERCEPTION_MARKER_PREFIX
|
|
993
|
+
];
|
|
994
|
+
for (const prefix of prefixes) {
|
|
995
|
+
if (key !== prefix && key.startsWith(prefix)) {
|
|
996
|
+
const normalizedKey = key.substring(prefix.length);
|
|
997
|
+
onKeyNormalized(normalizedKey);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
695
1001
|
}
|
|
696
1002
|
});
|
|
697
1003
|
|
|
698
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1004
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/error.js
|
|
699
1005
|
var require_error = __commonJS({
|
|
700
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1006
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/error.js"(exports) {
|
|
701
1007
|
"use strict";
|
|
702
|
-
Object.defineProperty(
|
|
1008
|
+
Object.defineProperty(exports, "__esModule", {
|
|
703
1009
|
value: true
|
|
704
1010
|
});
|
|
705
1011
|
function _export(target, all) {
|
|
@@ -708,7 +1014,7 @@ var require_error = __commonJS({
|
|
|
708
1014
|
get: all[name]
|
|
709
1015
|
});
|
|
710
1016
|
}
|
|
711
|
-
_export(
|
|
1017
|
+
_export(exports, {
|
|
712
1018
|
PageSignatureError: function() {
|
|
713
1019
|
return PageSignatureError;
|
|
714
1020
|
},
|
|
@@ -748,15 +1054,15 @@ var require_error = __commonJS({
|
|
|
748
1054
|
}
|
|
749
1055
|
});
|
|
750
1056
|
|
|
751
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1057
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
|
|
752
1058
|
var require_cookies = __commonJS({
|
|
753
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1059
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js"(exports, module) {
|
|
754
1060
|
"use strict";
|
|
755
1061
|
var __defProp2 = Object.defineProperty;
|
|
756
1062
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
757
1063
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
758
1064
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
759
|
-
var
|
|
1065
|
+
var __export = (target, all) => {
|
|
760
1066
|
for (var name in all)
|
|
761
1067
|
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
762
1068
|
};
|
|
@@ -768,16 +1074,16 @@ var require_cookies = __commonJS({
|
|
|
768
1074
|
}
|
|
769
1075
|
return to;
|
|
770
1076
|
};
|
|
771
|
-
var
|
|
1077
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
772
1078
|
var src_exports = {};
|
|
773
|
-
|
|
1079
|
+
__export(src_exports, {
|
|
774
1080
|
RequestCookies: () => RequestCookies,
|
|
775
1081
|
ResponseCookies: () => ResponseCookies,
|
|
776
1082
|
parseCookie: () => parseCookie,
|
|
777
1083
|
parseSetCookie: () => parseSetCookie,
|
|
778
1084
|
stringifyCookie: () => stringifyCookie
|
|
779
1085
|
});
|
|
780
|
-
|
|
1086
|
+
module.exports = __toCommonJS(src_exports);
|
|
781
1087
|
function stringifyCookie(c) {
|
|
782
1088
|
var _a;
|
|
783
1089
|
const attrs = [
|
|
@@ -1072,11 +1378,11 @@ var require_cookies = __commonJS({
|
|
|
1072
1378
|
}
|
|
1073
1379
|
});
|
|
1074
1380
|
|
|
1075
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1381
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/cookies.js
|
|
1076
1382
|
var require_cookies2 = __commonJS({
|
|
1077
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1383
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/cookies.js"(exports) {
|
|
1078
1384
|
"use strict";
|
|
1079
|
-
Object.defineProperty(
|
|
1385
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1080
1386
|
value: true
|
|
1081
1387
|
});
|
|
1082
1388
|
function _export(target, all) {
|
|
@@ -1085,7 +1391,7 @@ var require_cookies2 = __commonJS({
|
|
|
1085
1391
|
get: all[name]
|
|
1086
1392
|
});
|
|
1087
1393
|
}
|
|
1088
|
-
_export(
|
|
1394
|
+
_export(exports, {
|
|
1089
1395
|
RequestCookies: function() {
|
|
1090
1396
|
return _cookies.RequestCookies;
|
|
1091
1397
|
},
|
|
@@ -1100,11 +1406,11 @@ var require_cookies2 = __commonJS({
|
|
|
1100
1406
|
}
|
|
1101
1407
|
});
|
|
1102
1408
|
|
|
1103
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1409
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/request.js
|
|
1104
1410
|
var require_request = __commonJS({
|
|
1105
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1411
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/request.js"(exports) {
|
|
1106
1412
|
"use strict";
|
|
1107
|
-
Object.defineProperty(
|
|
1413
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1108
1414
|
value: true
|
|
1109
1415
|
});
|
|
1110
1416
|
function _export(target, all) {
|
|
@@ -1113,7 +1419,7 @@ var require_request = __commonJS({
|
|
|
1113
1419
|
get: all[name]
|
|
1114
1420
|
});
|
|
1115
1421
|
}
|
|
1116
|
-
_export(
|
|
1422
|
+
_export(exports, {
|
|
1117
1423
|
INTERNALS: function() {
|
|
1118
1424
|
return INTERNALS;
|
|
1119
1425
|
},
|
|
@@ -1202,14 +1508,14 @@ var require_request = __commonJS({
|
|
|
1202
1508
|
}
|
|
1203
1509
|
});
|
|
1204
1510
|
|
|
1205
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1511
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js
|
|
1206
1512
|
var require_reflect = __commonJS({
|
|
1207
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1513
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js"(exports) {
|
|
1208
1514
|
"use strict";
|
|
1209
|
-
Object.defineProperty(
|
|
1515
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1210
1516
|
value: true
|
|
1211
1517
|
});
|
|
1212
|
-
Object.defineProperty(
|
|
1518
|
+
Object.defineProperty(exports, "ReflectAdapter", {
|
|
1213
1519
|
enumerable: true,
|
|
1214
1520
|
get: function() {
|
|
1215
1521
|
return ReflectAdapter;
|
|
@@ -1236,14 +1542,14 @@ var require_reflect = __commonJS({
|
|
|
1236
1542
|
}
|
|
1237
1543
|
});
|
|
1238
1544
|
|
|
1239
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1545
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/response.js
|
|
1240
1546
|
var require_response = __commonJS({
|
|
1241
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1547
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/response.js"(exports) {
|
|
1242
1548
|
"use strict";
|
|
1243
|
-
Object.defineProperty(
|
|
1549
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1244
1550
|
value: true
|
|
1245
1551
|
});
|
|
1246
|
-
Object.defineProperty(
|
|
1552
|
+
Object.defineProperty(exports, "NextResponse", {
|
|
1247
1553
|
enumerable: true,
|
|
1248
1554
|
get: function() {
|
|
1249
1555
|
return NextResponse2;
|
|
@@ -1332,8 +1638,7 @@ var require_response = __commonJS({
|
|
|
1332
1638
|
return new _NextResponse(response.body, response);
|
|
1333
1639
|
}
|
|
1334
1640
|
static redirect(url, init) {
|
|
1335
|
-
|
|
1336
|
-
const status = typeof init === "number" ? init : (_a = init == null ? void 0 : init.status) != null ? _a : 307;
|
|
1641
|
+
const status = typeof init === "number" ? init : (init == null ? void 0 : init.status) ?? 307;
|
|
1337
1642
|
if (!REDIRECTS.has(status)) {
|
|
1338
1643
|
throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
|
|
1339
1644
|
}
|
|
@@ -1368,14 +1673,14 @@ var require_response = __commonJS({
|
|
|
1368
1673
|
}
|
|
1369
1674
|
});
|
|
1370
1675
|
|
|
1371
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1676
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/image-response.js
|
|
1372
1677
|
var require_image_response = __commonJS({
|
|
1373
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1678
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/image-response.js"(exports) {
|
|
1374
1679
|
"use strict";
|
|
1375
|
-
Object.defineProperty(
|
|
1680
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1376
1681
|
value: true
|
|
1377
1682
|
});
|
|
1378
|
-
Object.defineProperty(
|
|
1683
|
+
Object.defineProperty(exports, "ImageResponse", {
|
|
1379
1684
|
enumerable: true,
|
|
1380
1685
|
get: function() {
|
|
1381
1686
|
return ImageResponse;
|
|
@@ -1387,9 +1692,9 @@ var require_image_response = __commonJS({
|
|
|
1387
1692
|
}
|
|
1388
1693
|
});
|
|
1389
1694
|
|
|
1390
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1695
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js
|
|
1391
1696
|
var require_ua_parser = __commonJS({
|
|
1392
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1697
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js"(exports, module) {
|
|
1393
1698
|
(() => {
|
|
1394
1699
|
var i = { 226: function(i2, e2) {
|
|
1395
1700
|
(function(o2, a) {
|
|
@@ -1607,16 +1912,16 @@ var require_ua_parser = __commonJS({
|
|
|
1607
1912
|
}
|
|
1608
1913
|
if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
|
|
1609
1914
|
var o = __nccwpck_require__(226);
|
|
1610
|
-
|
|
1915
|
+
module.exports = o;
|
|
1611
1916
|
})();
|
|
1612
1917
|
}
|
|
1613
1918
|
});
|
|
1614
1919
|
|
|
1615
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1920
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/user-agent.js
|
|
1616
1921
|
var require_user_agent = __commonJS({
|
|
1617
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1922
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/user-agent.js"(exports) {
|
|
1618
1923
|
"use strict";
|
|
1619
|
-
Object.defineProperty(
|
|
1924
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1620
1925
|
value: true
|
|
1621
1926
|
});
|
|
1622
1927
|
function _export(target, all) {
|
|
@@ -1625,7 +1930,7 @@ var require_user_agent = __commonJS({
|
|
|
1625
1930
|
get: all[name]
|
|
1626
1931
|
});
|
|
1627
1932
|
}
|
|
1628
|
-
_export(
|
|
1933
|
+
_export(exports, {
|
|
1629
1934
|
isBot: function() {
|
|
1630
1935
|
return isBot;
|
|
1631
1936
|
},
|
|
@@ -1657,14 +1962,14 @@ var require_user_agent = __commonJS({
|
|
|
1657
1962
|
}
|
|
1658
1963
|
});
|
|
1659
1964
|
|
|
1660
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1965
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/url-pattern.js
|
|
1661
1966
|
var require_url_pattern = __commonJS({
|
|
1662
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1967
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/dist/server/web/spec-extension/url-pattern.js"(exports) {
|
|
1663
1968
|
"use strict";
|
|
1664
|
-
Object.defineProperty(
|
|
1969
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1665
1970
|
value: true
|
|
1666
1971
|
});
|
|
1667
|
-
Object.defineProperty(
|
|
1972
|
+
Object.defineProperty(exports, "URLPattern", {
|
|
1668
1973
|
enumerable: true,
|
|
1669
1974
|
get: function() {
|
|
1670
1975
|
return GlobalURLPattern;
|
|
@@ -1677,9 +1982,9 @@ var require_url_pattern = __commonJS({
|
|
|
1677
1982
|
}
|
|
1678
1983
|
});
|
|
1679
1984
|
|
|
1680
|
-
// ../../node_modules/.pnpm/next@14.2.
|
|
1985
|
+
// ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/server.js
|
|
1681
1986
|
var require_server = __commonJS({
|
|
1682
|
-
"../../node_modules/.pnpm/next@14.2.
|
|
1987
|
+
"../../node_modules/.pnpm/next@14.2.35_@babel+core@7.28.5_@playwright+test@1.57.0_babel-plugin-macros@3.1.0_react-dom@1_5ntxhnmqmryzeiifgrwgxrr6qe/node_modules/next/server.js"(exports, module) {
|
|
1683
1988
|
var serverExports = {
|
|
1684
1989
|
NextRequest: require_request().NextRequest,
|
|
1685
1990
|
NextResponse: require_response().NextResponse,
|
|
@@ -1688,25 +1993,25 @@ var require_server = __commonJS({
|
|
|
1688
1993
|
userAgent: require_user_agent().userAgent,
|
|
1689
1994
|
URLPattern: require_url_pattern().URLPattern
|
|
1690
1995
|
};
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1996
|
+
module.exports = serverExports;
|
|
1997
|
+
exports.NextRequest = serverExports.NextRequest;
|
|
1998
|
+
exports.NextResponse = serverExports.NextResponse;
|
|
1999
|
+
exports.ImageResponse = serverExports.ImageResponse;
|
|
2000
|
+
exports.userAgentFromString = serverExports.userAgentFromString;
|
|
2001
|
+
exports.userAgent = serverExports.userAgent;
|
|
2002
|
+
exports.URLPattern = serverExports.URLPattern;
|
|
1698
2003
|
}
|
|
1699
2004
|
});
|
|
1700
2005
|
|
|
1701
2006
|
// src/delivery-handlers.ts
|
|
1702
|
-
var delivery_handlers_exports = {};
|
|
1703
|
-
__export(delivery_handlers_exports, {
|
|
1704
|
-
createMediaDeliveryHandlers: () => createMediaDeliveryHandlers
|
|
1705
|
-
});
|
|
1706
|
-
module.exports = __toCommonJS(delivery_handlers_exports);
|
|
1707
|
-
var import_storage_blob = require("@azure/storage-blob");
|
|
1708
|
-
var import_sharp = __toESM(require("sharp"));
|
|
1709
2007
|
var import_server = __toESM(require_server());
|
|
2008
|
+
import {
|
|
2009
|
+
BlobServiceClient,
|
|
2010
|
+
generateBlobSASQueryParameters,
|
|
2011
|
+
StorageSharedKeyCredential,
|
|
2012
|
+
BlobSASPermissions
|
|
2013
|
+
} from "@azure/storage-blob";
|
|
2014
|
+
import sharp from "sharp";
|
|
1710
2015
|
var SUPPORTED_IMAGE_TYPES = [
|
|
1711
2016
|
"image/jpeg",
|
|
1712
2017
|
"image/png",
|
|
@@ -1717,7 +2022,6 @@ var SUPPORTED_IMAGE_TYPES = [
|
|
|
1717
2022
|
var createMediaDeliveryHandlers = (config) => {
|
|
1718
2023
|
return {
|
|
1719
2024
|
async GET(req, context) {
|
|
1720
|
-
var _a, _b;
|
|
1721
2025
|
try {
|
|
1722
2026
|
const accountNameMatch = /AccountName=([^;]+)/.exec(
|
|
1723
2027
|
config.connectionString
|
|
@@ -1732,11 +2036,11 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1732
2036
|
}
|
|
1733
2037
|
const accountName = accountNameMatch[1];
|
|
1734
2038
|
const accountKey = accountKeyMatch[1];
|
|
1735
|
-
const sharedKeyCredential = new
|
|
2039
|
+
const sharedKeyCredential = new StorageSharedKeyCredential(
|
|
1736
2040
|
accountName,
|
|
1737
2041
|
accountKey
|
|
1738
2042
|
);
|
|
1739
|
-
const client =
|
|
2043
|
+
const client = BlobServiceClient.fromConnectionString(
|
|
1740
2044
|
config.connectionString
|
|
1741
2045
|
);
|
|
1742
2046
|
const containerClient = client.getContainerClient(config.containerName);
|
|
@@ -1744,13 +2048,13 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1744
2048
|
const blockBlobClient = containerClient.getBlockBlobClient(blobName);
|
|
1745
2049
|
const expiresOn = /* @__PURE__ */ new Date();
|
|
1746
2050
|
expiresOn.setMinutes(expiresOn.getMinutes() + 1);
|
|
1747
|
-
const sasToken =
|
|
2051
|
+
const sasToken = generateBlobSASQueryParameters(
|
|
1748
2052
|
{
|
|
1749
2053
|
containerName: config.containerName,
|
|
1750
2054
|
// The container name
|
|
1751
2055
|
blobName,
|
|
1752
2056
|
// The blob name
|
|
1753
|
-
permissions:
|
|
2057
|
+
permissions: BlobSASPermissions.parse("r"),
|
|
1754
2058
|
// Read permission
|
|
1755
2059
|
expiresOn
|
|
1756
2060
|
// Expiration time
|
|
@@ -1795,7 +2099,7 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1795
2099
|
if (Number.isNaN(quality) || quality < 1 || quality > 100) {
|
|
1796
2100
|
return new import_server.NextResponse("Invalid quality parameter", { status: 400 });
|
|
1797
2101
|
}
|
|
1798
|
-
let processedImage = (
|
|
2102
|
+
let processedImage = sharp(buffer);
|
|
1799
2103
|
if (width || height) {
|
|
1800
2104
|
processedImage = processedImage.resize({
|
|
1801
2105
|
width: width ? Number(width) : void 0,
|
|
@@ -1806,10 +2110,10 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1806
2110
|
}
|
|
1807
2111
|
let outputFormat = "jpeg";
|
|
1808
2112
|
let outputContentType = "image/jpeg";
|
|
1809
|
-
if (format === "webp" || format === "auto" &&
|
|
2113
|
+
if (format === "webp" || format === "auto" && req.headers.get("accept")?.includes("image/webp")) {
|
|
1810
2114
|
outputFormat = "webp";
|
|
1811
2115
|
outputContentType = "image/webp";
|
|
1812
|
-
} else if (format === "avif" || format === "auto" &&
|
|
2116
|
+
} else if (format === "avif" || format === "auto" && req.headers.get("accept")?.includes("image/avif")) {
|
|
1813
2117
|
outputFormat = "avif";
|
|
1814
2118
|
outputContentType = "image/avif";
|
|
1815
2119
|
}
|
|
@@ -1820,7 +2124,7 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1820
2124
|
headers.set("content-type", outputContentType);
|
|
1821
2125
|
headers.set("content-length", processedBuffer.length.toString());
|
|
1822
2126
|
headers.set("cache-control", "public, max-age=31536000, immutable");
|
|
1823
|
-
return new import_server.NextResponse(processedBuffer, {
|
|
2127
|
+
return new import_server.NextResponse(new Uint8Array(processedBuffer), {
|
|
1824
2128
|
status: response.status,
|
|
1825
2129
|
statusText: response.statusText,
|
|
1826
2130
|
headers
|
|
@@ -1836,7 +2140,7 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1836
2140
|
);
|
|
1837
2141
|
headers.set("content-length", originalBuffer.length.toString());
|
|
1838
2142
|
headers.set("cache-control", "public, max-age=3600");
|
|
1839
|
-
return new import_server.NextResponse(originalBuffer, {
|
|
2143
|
+
return new import_server.NextResponse(new Uint8Array(originalBuffer), {
|
|
1840
2144
|
status: response.status,
|
|
1841
2145
|
statusText: response.statusText,
|
|
1842
2146
|
headers
|
|
@@ -1851,7 +2155,6 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1851
2155
|
}
|
|
1852
2156
|
};
|
|
1853
2157
|
};
|
|
1854
|
-
|
|
1855
|
-
0 && (module.exports = {
|
|
2158
|
+
export {
|
|
1856
2159
|
createMediaDeliveryHandlers
|
|
1857
|
-
}
|
|
2160
|
+
};
|