@usenotra/agentside 0.2.2 → 0.2.3

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.d.ts CHANGED
@@ -26,6 +26,12 @@ export declare function vercelRoutes(paths?: readonly string[]): {
26
26
  "X-Robots-Tag": string;
27
27
  };
28
28
  continue: boolean;
29
+ } | {
30
+ src: string;
31
+ headers: {
32
+ Vary: string;
33
+ };
34
+ continue: boolean;
29
35
  } | {
30
36
  src: string;
31
37
  has: ({
package/dist/build.js CHANGED
@@ -112,6 +112,7 @@ export function vercelRoutes(paths) {
112
112
  const pagePattern = nested ? `(${nested.join("|")})` : "((?!.*\\.).*[^/])";
113
113
  const routes = [
114
114
  { src: "^/(.+)\\.md$", headers: markdownHeaders, continue: true },
115
+ { src: `^/$|^/${pagePattern}/?$`, headers: { Vary: "Accept, User-Agent" }, continue: true },
115
116
  ...conditions.flatMap((condition) => [
116
117
  ...(!paths || paths.includes("/")
117
118
  ? [{ src: "^/$", has: [condition], dest: "/index.md", headers: markdownHeaders }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usenotra/agentside",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Serve markdown to AI agents and A/B test what they read. Built on Effect. By Notra.",
5
5
  "keywords": [
6
6
  "ai",