eddev 2.0.0-beta.230 → 2.0.0-beta.232
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/app/server/server-context.d.ts.map +1 -1
- package/dist/app/server/server-context.js +15 -2
- package/dist/node/cli/version.d.ts +1 -1
- package/dist/node/cli/version.js +1 -1
- package/dist/node/compiler/vinxi-app.d.ts.map +1 -1
- package/dist/node/compiler/vinxi-app.js +22 -0
- package/dist/node/compiler/vinxi-codegen.d.ts.map +1 -1
- package/dist/node/compiler/vinxi-codegen.js +34 -0
- package/dist/node/project/config.d.ts +61 -59
- package/dist/node/project/config.d.ts.map +1 -1
- package/dist/node/project/config.js +1 -0
- package/dist/node/types/block-type.d.ts +26 -26
- package/dist/node/types/view-type.d.ts +7 -7
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-context.d.ts","sourceRoot":"","sources":["../../../src/app/server/server-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAoC,MAAM,YAAY,CAAA;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAE3E,OAAO,EAAiC,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEpF,OAAO,EAAqB,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAKxD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,OAAO,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,eAAe,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,EAAE,QAAQ,CAAA;IAChB,WAAW,EAAE,aAAa,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,oBAA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EAAE,MAAM;IAUlC,cAAc,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;CAiD9B"}
|
|
@@ -179,7 +179,8 @@ export class ServerContext {
|
|
|
179
179
|
const result = await swr({
|
|
180
180
|
key: cacheKey,
|
|
181
181
|
cache: pageCache,
|
|
182
|
-
forceFresh: this.dev || req.bypass
|
|
182
|
+
forceFresh: this.dev || req.bypass,
|
|
183
|
+
staleWhileRevalidate: 10000,
|
|
183
184
|
getFreshValue: async (ctx) => {
|
|
184
185
|
const fetchUrl = withQuery(withTrailingSlash(req.pathname), {
|
|
185
186
|
_props: "1",
|
|
@@ -197,7 +198,10 @@ export class ServerContext {
|
|
|
197
198
|
redirect: "manual",
|
|
198
199
|
});
|
|
199
200
|
const preferredCacheDuration = parseInt(result.headers.get("x-ed-cache-duration") ?? "");
|
|
200
|
-
if (
|
|
201
|
+
if (this.cacheConfig.serverless.isr) {
|
|
202
|
+
ctx.metadata.ttl = 5000;
|
|
203
|
+
}
|
|
204
|
+
else if (isFinite(preferredCacheDuration)) {
|
|
201
205
|
ctx.metadata.ttl = preferredCacheDuration * 1000;
|
|
202
206
|
}
|
|
203
207
|
let resultStatus = result.status;
|
|
@@ -274,6 +278,7 @@ export class ServerContext {
|
|
|
274
278
|
key: "fetchAppData",
|
|
275
279
|
cache: pageCache,
|
|
276
280
|
forceFresh: this.dev || args.bypass,
|
|
281
|
+
staleWhileRevalidate: 10000,
|
|
277
282
|
getFreshValue: async (ctx) => {
|
|
278
283
|
const response = await this.fetchOrigin("/_appdata", {
|
|
279
284
|
cache: "no-cache",
|
|
@@ -289,6 +294,10 @@ export class ServerContext {
|
|
|
289
294
|
if (isFinite(preferredCacheDuration)) {
|
|
290
295
|
ctx.metadata.ttl = preferredCacheDuration * 1000;
|
|
291
296
|
}
|
|
297
|
+
// In ISR mode, set a super short TTL to avoid caching, but preventing constant revalidation
|
|
298
|
+
if (this.cacheConfig.serverless.isr) {
|
|
299
|
+
ctx.metadata.ttl = 5000;
|
|
300
|
+
}
|
|
292
301
|
if (result.queryMonitor) {
|
|
293
302
|
this.debugLogQueryMonitor("app", "", result.queryMonitor);
|
|
294
303
|
}
|
|
@@ -349,9 +358,13 @@ export class ServerContext {
|
|
|
349
358
|
key,
|
|
350
359
|
cache: queryCache,
|
|
351
360
|
forceFresh: this.dev || req.bypass,
|
|
361
|
+
staleWhileRevalidate: 10000,
|
|
352
362
|
getFreshValue: async (ctx) => {
|
|
353
363
|
const result = await fetch();
|
|
354
364
|
ctx.metadata.ttl = result.cacheTime;
|
|
365
|
+
if (this.cacheConfig.serverless.isr) {
|
|
366
|
+
ctx.metadata.ttl = 5000;
|
|
367
|
+
}
|
|
355
368
|
return result;
|
|
356
369
|
},
|
|
357
370
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.0.0-beta.
|
|
1
|
+
export declare const VERSION = "2.0.0-beta.231";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/node/cli/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.0.0-beta.
|
|
1
|
+
export const VERSION = "2.0.0-beta.231";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vinxi-app.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-app.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAI/C,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;IACtB,Q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AM,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,uBAiQ3C"}
|
|
@@ -74,6 +74,28 @@ export function createVinxiApp(args) {
|
|
|
74
74
|
varies: ["Authorization", "woocommerce-session"],
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
|
+
"/_data/query2/**": {
|
|
78
|
+
isr: {
|
|
79
|
+
expiration: cacheConfig.queryHooksTTL ?? 0,
|
|
80
|
+
allowQuery: ["params"],
|
|
81
|
+
group: 1,
|
|
82
|
+
passQuery: true,
|
|
83
|
+
},
|
|
84
|
+
cache: {
|
|
85
|
+
varies: ["Authorization", "woocommerce-session"],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
"/_data/query3/**": {
|
|
89
|
+
isr: {
|
|
90
|
+
expiration: cacheConfig.queryHooksTTL ?? 0,
|
|
91
|
+
allowQuery: ["params"],
|
|
92
|
+
group: 1,
|
|
93
|
+
passQuery: false,
|
|
94
|
+
},
|
|
95
|
+
cache: {
|
|
96
|
+
varies: ["Authorization", "woocommerce-session"],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
77
99
|
"/_data/query/**": {
|
|
78
100
|
isr: {
|
|
79
101
|
expiration: cacheConfig.queryHooksTTL ?? 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,UAExE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,OAAO,iBAIlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,UAExE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,OAAO,iBAIlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,aA2uB/C"}
|
|
@@ -289,6 +289,40 @@ export function createVinxiCodegen(opts) {
|
|
|
289
289
|
return await serverContext.fetchRouteData({ pathname: id, newOrigin: url.origin, bypass: serverContext.shouldBypass(event) })
|
|
290
290
|
}),
|
|
291
291
|
)
|
|
292
|
+
.get(
|
|
293
|
+
"/_data/query2/**:name",
|
|
294
|
+
eventHandler(async (event) => {
|
|
295
|
+
const id = "/" + getRouterParam(event, "name")
|
|
296
|
+
const url = getRequestURL(event)
|
|
297
|
+
const paramString = getQuery(event).params
|
|
298
|
+
|
|
299
|
+
const req = getWebRequest(event)
|
|
300
|
+
|
|
301
|
+
let params = {}
|
|
302
|
+
try {
|
|
303
|
+
params = typeof paramString === "string" && paramString.length ? JSON.parse(paramString) : {}
|
|
304
|
+
} catch (e) {
|
|
305
|
+
throw new Error("Invalid query parameters")
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
return {
|
|
309
|
+
url,id, params
|
|
310
|
+
}
|
|
311
|
+
}),
|
|
312
|
+
)
|
|
313
|
+
.get(
|
|
314
|
+
"/_data/query3/**:name",
|
|
315
|
+
eventHandler(async (event) => {
|
|
316
|
+
const id = "/" + getRouterParam(event, "name")
|
|
317
|
+
const url = getRequestURL(event)
|
|
318
|
+
const paramString = getQuery(event).params
|
|
319
|
+
|
|
320
|
+
const req = getWebRequest(event)
|
|
321
|
+
return {
|
|
322
|
+
url,id, paramString
|
|
323
|
+
}
|
|
324
|
+
}),
|
|
325
|
+
)
|
|
292
326
|
.get(
|
|
293
327
|
"/_data/query/**:name",
|
|
294
328
|
eventHandler(async (event) => {
|
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { Project } from "./project.js";
|
|
3
3
|
export declare const EDCacheConfigSchema: z.ZodObject<{
|
|
4
4
|
wordpress: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
5
|
+
/** @deprecated */
|
|
5
6
|
strategy: z.ZodOptional<z.ZodEnum<["always", "ssr-always-fresh"]>>;
|
|
6
7
|
cacheHeaders: z.ZodDefault<z.ZodBoolean>;
|
|
7
8
|
transients: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -19,10 +20,10 @@ export declare const EDCacheConfigSchema: z.ZodObject<{
|
|
|
19
20
|
dataCache: z.ZodDefault<z.ZodEnum<["in-memory", "kv", "none"]>>;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
22
|
isr: boolean;
|
|
22
|
-
dataCache: "
|
|
23
|
+
dataCache: "in-memory" | "kv" | "none";
|
|
23
24
|
}, {
|
|
24
25
|
isr?: boolean | undefined;
|
|
25
|
-
dataCache?: "
|
|
26
|
+
dataCache?: "in-memory" | "kv" | "none" | undefined;
|
|
26
27
|
}>>>;
|
|
27
28
|
pageDataTTL: z.ZodDefault<z.ZodNumber>;
|
|
28
29
|
appDataTTL: z.ZodDefault<z.ZodNumber>;
|
|
@@ -35,7 +36,7 @@ export declare const EDCacheConfigSchema: z.ZodObject<{
|
|
|
35
36
|
};
|
|
36
37
|
serverless: {
|
|
37
38
|
isr: boolean;
|
|
38
|
-
dataCache: "
|
|
39
|
+
dataCache: "in-memory" | "kv" | "none";
|
|
39
40
|
};
|
|
40
41
|
pageDataTTL: number;
|
|
41
42
|
appDataTTL: number;
|
|
@@ -48,7 +49,7 @@ export declare const EDCacheConfigSchema: z.ZodObject<{
|
|
|
48
49
|
} | undefined;
|
|
49
50
|
serverless?: {
|
|
50
51
|
isr?: boolean | undefined;
|
|
51
|
-
dataCache?: "
|
|
52
|
+
dataCache?: "in-memory" | "kv" | "none" | undefined;
|
|
52
53
|
} | undefined;
|
|
53
54
|
pageDataTTL?: number | undefined;
|
|
54
55
|
appDataTTL?: number | undefined;
|
|
@@ -63,20 +64,20 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
63
64
|
provider: z.ZodLiteral<"ga4">;
|
|
64
65
|
id: z.ZodString;
|
|
65
66
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
id: string;
|
|
67
67
|
provider: "ga4";
|
|
68
|
-
}, {
|
|
69
68
|
id: string;
|
|
69
|
+
}, {
|
|
70
70
|
provider: "ga4";
|
|
71
|
+
id: string;
|
|
71
72
|
}>, z.ZodObject<{
|
|
72
73
|
provider: z.ZodLiteral<"gtm">;
|
|
73
74
|
id: z.ZodString;
|
|
74
75
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
id: string;
|
|
76
76
|
provider: "gtm";
|
|
77
|
-
}, {
|
|
78
77
|
id: string;
|
|
78
|
+
}, {
|
|
79
79
|
provider: "gtm";
|
|
80
|
+
id: string;
|
|
80
81
|
}>]>, "many">>;
|
|
81
82
|
serverless: z.ZodObject<{
|
|
82
83
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -106,32 +107,32 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
106
107
|
commonOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
107
108
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
108
109
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
nonce: boolean;
|
|
110
110
|
enabled: boolean;
|
|
111
111
|
autoDetect: boolean;
|
|
112
|
+
nonce: boolean;
|
|
112
113
|
values?: Record<string, string[]> | undefined;
|
|
113
114
|
commonOrigins?: string[] | undefined;
|
|
114
115
|
}, {
|
|
115
116
|
enabled: boolean;
|
|
116
117
|
values?: Record<string, string[]> | undefined;
|
|
117
|
-
nonce?: boolean | undefined;
|
|
118
118
|
autoDetect?: boolean | undefined;
|
|
119
|
+
nonce?: boolean | undefined;
|
|
119
120
|
commonOrigins?: string[] | undefined;
|
|
120
121
|
}>>;
|
|
121
122
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
plugins: "proxy" | "remote";
|
|
123
123
|
enabled: boolean;
|
|
124
124
|
uploads: "proxy" | "remote";
|
|
125
|
-
|
|
125
|
+
plugins: "proxy" | "remote";
|
|
126
|
+
admin: "proxy" | "hide";
|
|
126
127
|
originProtection: {
|
|
127
128
|
requireLogin: boolean;
|
|
128
129
|
};
|
|
129
130
|
themeAssets: string[];
|
|
130
131
|
endpoints: Record<string, string>;
|
|
131
132
|
csp: {
|
|
132
|
-
nonce: boolean;
|
|
133
133
|
enabled: boolean;
|
|
134
134
|
autoDetect: boolean;
|
|
135
|
+
nonce: boolean;
|
|
135
136
|
values?: Record<string, string[]> | undefined;
|
|
136
137
|
commonOrigins?: string[] | undefined;
|
|
137
138
|
};
|
|
@@ -141,9 +142,9 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
141
142
|
}, {
|
|
142
143
|
uploads: "proxy" | "remote";
|
|
143
144
|
endpoints: Record<string, string>;
|
|
144
|
-
plugins?: "proxy" | "remote" | undefined;
|
|
145
145
|
enabled?: boolean | undefined;
|
|
146
|
-
|
|
146
|
+
plugins?: "proxy" | "remote" | undefined;
|
|
147
|
+
admin?: "proxy" | "hide" | undefined;
|
|
147
148
|
originProtection?: {
|
|
148
149
|
requireLogin?: boolean | undefined;
|
|
149
150
|
} | undefined;
|
|
@@ -154,13 +155,14 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
154
155
|
csp?: {
|
|
155
156
|
enabled: boolean;
|
|
156
157
|
values?: Record<string, string[]> | undefined;
|
|
157
|
-
nonce?: boolean | undefined;
|
|
158
158
|
autoDetect?: boolean | undefined;
|
|
159
|
+
nonce?: boolean | undefined;
|
|
159
160
|
commonOrigins?: string[] | undefined;
|
|
160
161
|
} | undefined;
|
|
161
162
|
}>;
|
|
162
163
|
cache: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
163
164
|
wordpress: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
165
|
+
/** @deprecated */
|
|
164
166
|
strategy: z.ZodOptional<z.ZodEnum<["always", "ssr-always-fresh"]>>;
|
|
165
167
|
cacheHeaders: z.ZodDefault<z.ZodBoolean>;
|
|
166
168
|
transients: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -178,10 +180,10 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
178
180
|
dataCache: z.ZodDefault<z.ZodEnum<["in-memory", "kv", "none"]>>;
|
|
179
181
|
}, "strip", z.ZodTypeAny, {
|
|
180
182
|
isr: boolean;
|
|
181
|
-
dataCache: "
|
|
183
|
+
dataCache: "in-memory" | "kv" | "none";
|
|
182
184
|
}, {
|
|
183
185
|
isr?: boolean | undefined;
|
|
184
|
-
dataCache?: "
|
|
186
|
+
dataCache?: "in-memory" | "kv" | "none" | undefined;
|
|
185
187
|
}>>>;
|
|
186
188
|
pageDataTTL: z.ZodDefault<z.ZodNumber>;
|
|
187
189
|
appDataTTL: z.ZodDefault<z.ZodNumber>;
|
|
@@ -194,7 +196,7 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
194
196
|
};
|
|
195
197
|
serverless: {
|
|
196
198
|
isr: boolean;
|
|
197
|
-
dataCache: "
|
|
199
|
+
dataCache: "in-memory" | "kv" | "none";
|
|
198
200
|
};
|
|
199
201
|
pageDataTTL: number;
|
|
200
202
|
appDataTTL: number;
|
|
@@ -207,7 +209,7 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
207
209
|
} | undefined;
|
|
208
210
|
serverless?: {
|
|
209
211
|
isr?: boolean | undefined;
|
|
210
|
-
dataCache?: "
|
|
212
|
+
dataCache?: "in-memory" | "kv" | "none" | undefined;
|
|
211
213
|
} | undefined;
|
|
212
214
|
pageDataTTL?: number | undefined;
|
|
213
215
|
appDataTTL?: number | undefined;
|
|
@@ -215,37 +217,20 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
215
217
|
}>>>;
|
|
216
218
|
devUI: z.ZodDefault<z.ZodEnum<["disabled", "enabled"]>>;
|
|
217
219
|
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
version: "2";
|
|
219
|
-
cache: Record<string, {
|
|
220
|
-
wordpress: {
|
|
221
|
-
cacheHeaders: boolean;
|
|
222
|
-
transients: boolean;
|
|
223
|
-
strategy?: "always" | "ssr-always-fresh" | undefined;
|
|
224
|
-
};
|
|
225
|
-
serverless: {
|
|
226
|
-
isr: boolean;
|
|
227
|
-
dataCache: "none" | "in-memory" | "kv";
|
|
228
|
-
};
|
|
229
|
-
pageDataTTL: number;
|
|
230
|
-
appDataTTL: number;
|
|
231
|
-
queryHooksTTL: number;
|
|
232
|
-
}>;
|
|
233
|
-
legacyMetadata: boolean;
|
|
234
|
-
legacyStitches: boolean;
|
|
235
220
|
serverless: {
|
|
236
|
-
plugins: "proxy" | "remote";
|
|
237
221
|
enabled: boolean;
|
|
238
222
|
uploads: "proxy" | "remote";
|
|
239
|
-
|
|
223
|
+
plugins: "proxy" | "remote";
|
|
224
|
+
admin: "proxy" | "hide";
|
|
240
225
|
originProtection: {
|
|
241
226
|
requireLogin: boolean;
|
|
242
227
|
};
|
|
243
228
|
themeAssets: string[];
|
|
244
229
|
endpoints: Record<string, string>;
|
|
245
230
|
csp: {
|
|
246
|
-
nonce: boolean;
|
|
247
231
|
enabled: boolean;
|
|
248
232
|
autoDetect: boolean;
|
|
233
|
+
nonce: boolean;
|
|
249
234
|
values?: Record<string, string[]> | undefined;
|
|
250
235
|
commonOrigins?: string[] | undefined;
|
|
251
236
|
};
|
|
@@ -253,23 +238,39 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
253
238
|
origins?: string[] | undefined;
|
|
254
239
|
} | undefined;
|
|
255
240
|
};
|
|
256
|
-
|
|
241
|
+
version: "2";
|
|
242
|
+
legacyMetadata: boolean;
|
|
243
|
+
legacyStitches: boolean;
|
|
244
|
+
cache: Record<string, {
|
|
245
|
+
wordpress: {
|
|
246
|
+
cacheHeaders: boolean;
|
|
247
|
+
transients: boolean;
|
|
248
|
+
strategy?: "always" | "ssr-always-fresh" | undefined;
|
|
249
|
+
};
|
|
250
|
+
serverless: {
|
|
251
|
+
isr: boolean;
|
|
252
|
+
dataCache: "in-memory" | "kv" | "none";
|
|
253
|
+
};
|
|
254
|
+
pageDataTTL: number;
|
|
255
|
+
appDataTTL: number;
|
|
256
|
+
queryHooksTTL: number;
|
|
257
|
+
}>;
|
|
258
|
+
devUI: "enabled" | "disabled";
|
|
257
259
|
$schema?: string | undefined;
|
|
258
260
|
trackers?: ({
|
|
259
|
-
id: string;
|
|
260
261
|
provider: "ga4";
|
|
261
|
-
} | {
|
|
262
262
|
id: string;
|
|
263
|
+
} | {
|
|
263
264
|
provider: "gtm";
|
|
265
|
+
id: string;
|
|
264
266
|
})[] | undefined;
|
|
265
267
|
}, {
|
|
266
|
-
version: "1" | "2";
|
|
267
268
|
serverless: {
|
|
268
269
|
uploads: "proxy" | "remote";
|
|
269
270
|
endpoints: Record<string, string>;
|
|
270
|
-
plugins?: "proxy" | "remote" | undefined;
|
|
271
271
|
enabled?: boolean | undefined;
|
|
272
|
-
|
|
272
|
+
plugins?: "proxy" | "remote" | undefined;
|
|
273
|
+
admin?: "proxy" | "hide" | undefined;
|
|
273
274
|
originProtection?: {
|
|
274
275
|
requireLogin?: boolean | undefined;
|
|
275
276
|
} | undefined;
|
|
@@ -280,11 +281,22 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
280
281
|
csp?: {
|
|
281
282
|
enabled: boolean;
|
|
282
283
|
values?: Record<string, string[]> | undefined;
|
|
283
|
-
nonce?: boolean | undefined;
|
|
284
284
|
autoDetect?: boolean | undefined;
|
|
285
|
+
nonce?: boolean | undefined;
|
|
285
286
|
commonOrigins?: string[] | undefined;
|
|
286
287
|
} | undefined;
|
|
287
288
|
};
|
|
289
|
+
version: "1" | "2";
|
|
290
|
+
$schema?: string | undefined;
|
|
291
|
+
legacyMetadata?: boolean | undefined;
|
|
292
|
+
legacyStitches?: boolean | undefined;
|
|
293
|
+
trackers?: ({
|
|
294
|
+
provider: "ga4";
|
|
295
|
+
id: string;
|
|
296
|
+
} | {
|
|
297
|
+
provider: "gtm";
|
|
298
|
+
id: string;
|
|
299
|
+
})[] | undefined;
|
|
288
300
|
cache?: Record<string, {
|
|
289
301
|
wordpress?: {
|
|
290
302
|
strategy?: "always" | "ssr-always-fresh" | undefined;
|
|
@@ -293,23 +305,13 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
293
305
|
} | undefined;
|
|
294
306
|
serverless?: {
|
|
295
307
|
isr?: boolean | undefined;
|
|
296
|
-
dataCache?: "
|
|
308
|
+
dataCache?: "in-memory" | "kv" | "none" | undefined;
|
|
297
309
|
} | undefined;
|
|
298
310
|
pageDataTTL?: number | undefined;
|
|
299
311
|
appDataTTL?: number | undefined;
|
|
300
312
|
queryHooksTTL?: number | undefined;
|
|
301
313
|
}> | undefined;
|
|
302
|
-
|
|
303
|
-
legacyMetadata?: boolean | undefined;
|
|
304
|
-
legacyStitches?: boolean | undefined;
|
|
305
|
-
trackers?: ({
|
|
306
|
-
id: string;
|
|
307
|
-
provider: "ga4";
|
|
308
|
-
} | {
|
|
309
|
-
id: string;
|
|
310
|
-
provider: "gtm";
|
|
311
|
-
})[] | undefined;
|
|
312
|
-
devUI?: "disabled" | "enabled" | undefined;
|
|
314
|
+
devUI?: "enabled" | "disabled" | undefined;
|
|
313
315
|
}>;
|
|
314
316
|
export type EDConfig = z.infer<typeof EDConfigSchema>;
|
|
315
317
|
export type EDCacheConfig = z.infer<typeof EDCacheConfigSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/node/project/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,OAAO,EAAE,OAAO,EAAyB,MAAM,cAAc,CAAA;AAE7D,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/node/project/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,OAAO,EAAE,OAAO,EAAyB,MAAM,cAAc,CAAA;AAE7D,eAAO,MAAM,mBAAmB;;QAG1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BtB,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA7BrB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkJtB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AACrD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,qBAAa,YAAY;IAGI,OAAO,EAAE,OAAO;IAF3C,MAAM,CAAC,EAAE,QAAQ,CAAA;IAEjB,OAAO;WAEM,MAAM,CAAC,OAAO,EAAE,OAAO;IAM9B,IAAI;YAQI,kBAAkB;YAYlB,UAAU;IAiCxB,OAAO,CAAC,WAAW;IAOnB,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;CAUzD"}
|
|
@@ -39,37 +39,37 @@ export declare const BlockMetaSchema: z.ZodObject<{
|
|
|
39
39
|
label: z.ZodString;
|
|
40
40
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
label: string;
|
|
43
42
|
name: string;
|
|
43
|
+
label: string;
|
|
44
44
|
isDefault?: boolean | undefined;
|
|
45
45
|
}, {
|
|
46
|
-
label: string;
|
|
47
46
|
name: string;
|
|
47
|
+
label: string;
|
|
48
48
|
isDefault?: boolean | undefined;
|
|
49
49
|
}>, "many">>;
|
|
50
50
|
lazyLoad: z.ZodOptional<z.ZodBoolean>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
|
|
53
|
-
mode: "
|
|
54
|
-
slug: string;
|
|
55
|
-
tags: string[];
|
|
56
|
-
flags: Record<string, any>;
|
|
57
|
-
category: string;
|
|
58
|
-
parent: string[];
|
|
59
|
-
inserter: boolean;
|
|
52
|
+
cache: boolean;
|
|
53
|
+
mode: "preview" | "edit" | "both";
|
|
60
54
|
acfName: string;
|
|
61
55
|
fileName: string;
|
|
56
|
+
slug: string;
|
|
62
57
|
graphqlFieldName: string;
|
|
58
|
+
title: string;
|
|
59
|
+
category: string;
|
|
63
60
|
types: string[];
|
|
61
|
+
tags: string[];
|
|
62
|
+
flags: Record<string, any>;
|
|
64
63
|
childTags: string[];
|
|
65
64
|
childBlocks: string[];
|
|
65
|
+
parent: string[];
|
|
66
66
|
ancestors: string[];
|
|
67
67
|
dynamic: boolean;
|
|
68
|
-
cache: boolean;
|
|
69
68
|
allowMultiple: boolean;
|
|
70
|
-
frontendMode: "
|
|
71
|
-
|
|
69
|
+
frontendMode: "default" | "hidden" | "childrenOnly";
|
|
70
|
+
inserter: boolean;
|
|
72
71
|
description?: string | undefined;
|
|
72
|
+
icon?: string | undefined;
|
|
73
73
|
keywords?: string | string[] | undefined;
|
|
74
74
|
templates?: string[] | null | undefined;
|
|
75
75
|
postMetaBlock?: {
|
|
@@ -77,42 +77,42 @@ export declare const BlockMetaSchema: z.ZodObject<{
|
|
|
77
77
|
fieldName: string;
|
|
78
78
|
} | undefined;
|
|
79
79
|
blockStyles?: {
|
|
80
|
-
label: string;
|
|
81
80
|
name: string;
|
|
81
|
+
label: string;
|
|
82
82
|
isDefault?: boolean | undefined;
|
|
83
83
|
}[] | undefined;
|
|
84
84
|
lazyLoad?: boolean | undefined;
|
|
85
85
|
}, {
|
|
86
|
-
title: string;
|
|
87
|
-
slug: string;
|
|
88
86
|
acfName: string;
|
|
89
87
|
fileName: string;
|
|
88
|
+
slug: string;
|
|
90
89
|
graphqlFieldName: string;
|
|
90
|
+
title: string;
|
|
91
91
|
types: string[];
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
flags?: Record<string, any> | undefined;
|
|
95
|
-
icon?: string | undefined;
|
|
96
|
-
category?: string | undefined;
|
|
92
|
+
cache?: boolean | undefined;
|
|
93
|
+
mode?: "preview" | "edit" | "both" | undefined;
|
|
97
94
|
description?: string | undefined;
|
|
95
|
+
category?: string | undefined;
|
|
96
|
+
icon?: string | undefined;
|
|
98
97
|
keywords?: string | string[] | undefined;
|
|
99
|
-
parent?: string[] | undefined;
|
|
100
|
-
inserter?: boolean | undefined;
|
|
101
98
|
templates?: string[] | null | undefined;
|
|
99
|
+
tags?: string[] | undefined;
|
|
100
|
+
flags?: Record<string, any> | undefined;
|
|
102
101
|
childTags?: string[] | undefined;
|
|
103
102
|
childBlocks?: string[] | undefined;
|
|
103
|
+
parent?: string[] | undefined;
|
|
104
104
|
ancestors?: string[] | undefined;
|
|
105
105
|
dynamic?: boolean | undefined;
|
|
106
|
-
cache?: boolean | undefined;
|
|
107
106
|
allowMultiple?: boolean | undefined;
|
|
108
107
|
postMetaBlock?: {
|
|
109
108
|
postTypes: string[];
|
|
110
109
|
fieldName: string;
|
|
111
110
|
} | undefined;
|
|
112
|
-
frontendMode?: "
|
|
111
|
+
frontendMode?: "default" | "hidden" | "childrenOnly" | undefined;
|
|
112
|
+
inserter?: boolean | undefined;
|
|
113
113
|
blockStyles?: {
|
|
114
|
-
label: string;
|
|
115
114
|
name: string;
|
|
115
|
+
label: string;
|
|
116
116
|
isDefault?: boolean | undefined;
|
|
117
117
|
}[] | undefined;
|
|
118
118
|
lazyLoad?: boolean | undefined;
|
|
@@ -9,21 +9,21 @@ export declare const ViewMetaSchema: z.ZodObject<{
|
|
|
9
9
|
routePattern: z.ZodOptional<z.ZodString>;
|
|
10
10
|
postType: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
title: string;
|
|
13
|
-
slug: string;
|
|
14
|
-
fileName: string;
|
|
15
12
|
cache: boolean;
|
|
13
|
+
fileName: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
title: string;
|
|
16
16
|
isCustomTemplate: boolean;
|
|
17
|
-
postType?: string[] | undefined;
|
|
18
17
|
routePattern?: string | undefined;
|
|
18
|
+
postType?: string[] | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
title: string;
|
|
21
|
-
slug: string;
|
|
22
20
|
fileName: string;
|
|
23
|
-
|
|
21
|
+
slug: string;
|
|
22
|
+
title: string;
|
|
24
23
|
cache?: boolean | undefined;
|
|
25
24
|
isCustomTemplate?: boolean | undefined;
|
|
26
25
|
routePattern?: string | undefined;
|
|
26
|
+
postType?: string[] | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
export type ViewMetadata = z.infer<typeof ViewMetaSchema>;
|
|
29
29
|
export type ViewMetadataConstructor = z.input<typeof ViewMetaSchema>;
|