eddev 2.0.0-beta.206 → 2.0.0-beta.208
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.
|
@@ -72,15 +72,15 @@ export function createVinxiApp(args) {
|
|
|
72
72
|
varies: ["Authorization", "woocommerce-session"],
|
|
73
73
|
},
|
|
74
74
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
"/_data/query/**": {
|
|
76
|
+
isr: false,
|
|
77
|
+
swr: false,
|
|
78
|
+
// cache: {
|
|
79
|
+
// staleMaxAge: 300,
|
|
80
|
+
// maxAge: 300,
|
|
81
|
+
// varies: ["Authorization", "woocommerce-session"],
|
|
82
|
+
// },
|
|
83
|
+
},
|
|
84
84
|
...args.rpcBases?.reduce((acc, base) => {
|
|
85
85
|
return {
|
|
86
86
|
...acc,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAIlD,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":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAIlD,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,aAkrB/C"}
|
|
@@ -281,11 +281,11 @@ export function createVinxiCodegen(opts) {
|
|
|
281
281
|
const url = getRequestURL(event)
|
|
282
282
|
const paramString = getQuery(event).params
|
|
283
283
|
|
|
284
|
-
const req =
|
|
284
|
+
const req = getWebRequest(event)
|
|
285
285
|
|
|
286
286
|
console.log('URL', url)
|
|
287
287
|
console.log("Params", getQuery(event))
|
|
288
|
-
console.log("Request", req)
|
|
288
|
+
console.log("Request", req.url)
|
|
289
289
|
|
|
290
290
|
let params = {}
|
|
291
291
|
try {
|
|
@@ -378,6 +378,8 @@ export function createVinxiCodegen(opts) {
|
|
|
378
378
|
if (isRPC) {
|
|
379
379
|
return handleRPC(event)
|
|
380
380
|
}
|
|
381
|
+
|
|
382
|
+
console.log('Data with URL', url)
|
|
381
383
|
|
|
382
384
|
// Data API
|
|
383
385
|
if (url.pathname.startsWith("/_data/")) {
|