Skip to content

g1t/apps/sudo/vite.config.ts

19 lines693 bytesCodeBlame

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 free1import { reactRouter } from "@react-router/dev/vite";
2import { cloudflare } from "@cloudflare/vite-plugin";
3import tailwindcss from "@tailwindcss/vite";
sudo: ~/ is an explicit alias, not tsconfig paths, so a build beside the other sites always resolves it4import { fileURLToPath } from "node:url";
Billing accounts, terms and enterprises; g1t is no longer free5import { defineConfig } from "vite";
6
7export 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 it14 // `~/` 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 free18 },
19});