Files
paseo/packages/website/vite.config.ts
T
Mohamed Boudra 434b28fc8e Add Providers docs page
Splits first-class and custom provider docs out of the Configuration
page onto /docs/providers. Introduces the first-class providers
(claude, codex, opencode, copilot, pi) and covers extending a provider,
Z.AI and Qwen plans, multiple profiles, custom binaries, ACP agents,
additionalModels, and disabling. Points to docs/CUSTOM-PROVIDERS.md on
GitHub as the source of truth.
2026-04-22 22:24:12 +07:00

59 lines
1.3 KiB
TypeScript

import path from "node:path";
import { defineConfig, type UserConfig } from "vite";
import tsConfigPaths from "vite-tsconfig-paths";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import { cloudflare } from "@cloudflare/vite-plugin";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
const repoRoot = path.resolve(__dirname, "../..");
const siteHost = "https://paseo.sh";
const sitemapPages = [
"/",
"/changelog",
"/claude-code",
"/codex",
"/docs",
"/download",
"/opencode",
"/privacy",
"/docs/best-practices",
"/docs/cli",
"/docs/configuration",
"/docs/providers",
"/docs/skills",
"/docs/security",
"/docs/updates",
"/docs/voice",
"/docs/worktrees",
].map((routePath) => ({
path: routePath,
}));
export default defineConfig((): UserConfig => {
return {
server: {
port: 8082,
fs: {
allow: [repoRoot],
},
},
plugins: [
cloudflare({ viteEnvironment: { name: "ssr" } }),
tsConfigPaths(),
tanstackStart({
router: {
quoteStyle: "double",
semicolons: true,
},
pages: sitemapPages,
sitemap: {
host: siteHost,
},
}),
react(),
tailwindcss(),
],
};
});