Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1.6 KB
Raw Blame
import type { VercelConfig } from "@vercel/config/v1";

export const config: VercelConfig = {
  git: {
    // Deploy pushes to main; every other branch stays manual.
    deploymentEnabled: {
      main: true,
      "*": false,
    },
  },
  installCommand: "npm install -g vite-plus && vp install --filter '@akeru/marketing...'",
  buildCommand: "vp run --filter @akeru/marketing build",
  outputDirectory: "dist",
  routes: [
    {
      src: "^/(.*)$",
      headers: {
        Link: '</sitemap.xml>; rel="sitemap"; type="application/xml", </index.md>; rel="alternate"; type="text/markdown", </.well-known/ard.json>; rel="api-catalog"; type="application/json", </feedback.md>; rel="help"; type="text/markdown"',
        Vary: "Accept, Accept-Encoding",
      },
      continue: true,
    },
    {
      src: "^/feedback\\.md$",
      dest: "/feedback.md",
      headers: { "Content-Type": "text/markdown; charset=utf-8" },
    },
    {
      src: "^/$",
      has: [{ type: "header", key: "accept", value: "text/markdown" }],
      dest: "/index.md",
      headers: {
        "Content-Type": "text/markdown; charset=utf-8",
        Vary: "Accept, Accept-Encoding",
      },
    },
    { handle: "filesystem" },
    {
      src: "^/api(?:/.*)?$",
      dest: "/api-error.json",
      status: 404,
      headers: {
        "Content-Type": "application/problem+json; charset=utf-8",
      },
    },
    {
      src: "^/.*$",
      has: [{ type: "header", key: "accept", value: "text/markdown" }],
      dest: "/404.md",
      status: 404,
      headers: { "Content-Type": "text/markdown; charset=utf-8" },
    },
    { src: "^/.*$", dest: "/404.html", status: 404 },
  ],
};