eddev 2.3.6 → 2.3.7

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.
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.3.6";
1
+ export declare const VERSION = "2.3.7";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const VERSION = "2.3.6";
1
+ export const VERSION = "2.3.7";
@@ -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,aAutB/C"}
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,aAguB/C"}
@@ -385,36 +385,44 @@ export function createVinxiCodegen(opts) {
385
385
  const serverContext = ServerContext.main
386
386
  const url = getRequestURL(event)
387
387
 
388
+ console.log("Handling", url.pathname);
388
389
  await Promise.allSettled([viewManifestReader.preloadAll(), blockManifestReader.preloadAll()])
389
390
 
391
+ console.log("Preloaded");
390
392
  // RPC
391
393
  const isRPC = serverContext.rpcBases.some((base) => url.pathname.startsWith(base))
392
394
  if (isRPC) {
395
+ console.log("isRPC");
393
396
  return handleRPC(event)
394
397
  }
395
398
 
396
399
  // Data API
397
400
  if (url.pathname.startsWith("/_data/")) {
401
+ console.log("Is Data API");
398
402
  return router.handler(event)
399
403
  }
400
404
 
401
405
  // LLM indexing route
402
406
  if (url.pathname.startsWith("/_ai/")) {
407
+ console.log("Is AI");
403
408
  return aiRouter.handler(event)
404
409
  }
405
410
 
406
411
  // Outdated build assets
407
412
  if (url.pathname.match(/^\\/(_build|_admin)/)) {
413
+ console.log("Is build asset");
408
414
  return new Response("", { status: 404 })
409
415
  }
410
416
 
411
417
  // Proxy WordPress
412
418
  if (url.pathname.includes(".") || url.pathname.startsWith("/graphql") || url.pathname.startsWith("/wp-")) {
419
+ console.log("Is proxied file", url.pathname);
413
420
  return proxyWpAdmin(event)
414
421
  }
415
422
 
416
423
  // Enforce trailing slashes
417
424
  if (!url.pathname.endsWith("/")) {
425
+ console.log("Missing trailing slash");
418
426
  url.pathname = withTrailingSlash(url.pathname)
419
427
  return Response.redirect(url, 301)
420
428
  }
@@ -429,6 +437,7 @@ export function createVinxiCodegen(opts) {
429
437
  `}
430
438
 
431
439
  // SSR
440
+ console.log("Rendering page", url.pathname);
432
441
  return renderPage({ pathname: url.pathname, newOrigin: url.origin, hostname: url.hostname, bypass: serverContext.shouldBypass(event) })
433
442
  },
434
443
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",