Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Billing accounts, terms and enterprises; g1t is no longer free | 1 | import { reactRouter } from "@react-router/dev/vite"; |
| 2 | import { cloudflare } from "@cloudflare/vite-plugin"; | |
| 3 | import tailwindcss from "@tailwindcss/vite"; | |
| sudo: ~/ is an explicit alias, not tsconfig paths, so a build beside the other sites always resolves it | 4 | import { fileURLToPath } from "node:url"; |
| Billing accounts, terms and enterprises; g1t is no longer free | 5 | import { defineConfig } from "vite"; |
| 6 | ||
| 7 | export default defineConfig({ | |
| 8 | plugins: [ | |
| 9 | cloudflare({ viteEnvironment: { name: "ssr" } }), | |
| 10 | tailwindcss(), | |
| 11 | reactRouter(), | |
| 12 | ], | |
| 13 | resolve: { | |
| sudo: ~/ is an explicit alias, not tsconfig paths, so a build beside the other sites always resolves it | 14 | // `~/` is app/, set here rather than read from tsconfig's paths: those |
| 15 | // apply only to files tsconfig includes, and a build beside the other | |
| 16 | // sites' (deploy.mjs) sometimes found legacy-accounts.tsx outside them. | |
| 17 | alias: { "~": fileURLToPath(new URL("./app", import.meta.url)) }, | |
| Billing accounts, terms and enterprises; g1t is no longer free | 18 | }, |
| 19 | }); |