Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

671 B
Raw Blame
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { devRoleAccounts } from "./scripts/dev-role-accounts.mjs";

export default defineConfig({
  plugins: [react(), devRoleAccounts(new URL(".dev-role-accounts.json", import.meta.url))],
  build: { outDir: "dist" },
  server: {
    proxy: {
      "/gateway": {
        target: "http://127.0.0.1:8000",
        // Keep the browser's Host, as the gateway container's nginx does:
        // switch-core starts a sign-in on the callback's host when the request
        // names another, so a rewritten Host costs every sign-in a redirect.
        changeOrigin: false,
      },
    },
  },
});