Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

15 linesCodeBlameRaw
1import { reactRouter } from "@react-router/dev/vite";
2import { cloudflare } from "@cloudflare/vite-plugin";
3import tailwindcss from "@tailwindcss/vite";
4import { fileURLToPath } from "node:url";
5import { defineConfig } from "vite";
6
7export default defineConfig({
8 plugins: [cloudflare({ viteEnvironment: { name: "ssr" } }), tailwindcss(), reactRouter()],
9 resolve: {
10 // `~/` is app/, set here rather than read from tsconfig's paths: those
11 // apply only to files tsconfig includes, and a build beside the other
12 // sites' (deploy.mjs) sometimes found legacy-accounts.tsx outside them.
13 alias: { "~": fileURLToPath(new URL("./app", import.meta.url)) },
14 },
15});