fix dev config

This commit is contained in:
2026-02-14 20:28:23 -08:00
parent ebb208fbde
commit 7b6b42f885
9 changed files with 20 additions and 57 deletions

6
web/.gitignore vendored
View File

@@ -1,3 +1,9 @@
node_modules node_modules
.DS_Store .DS_Store
dist dist
.cache
*.tsbuildinfo
vite.config.js
vite.config.d.ts
tailwind.config.js
tailwind.config.d.ts

View File

@@ -1,3 +0,0 @@
import type { Config } from "tailwindcss";
declare const config: Config;
export default config;

View File

@@ -1,38 +0,0 @@
var config = {
darkMode: ["class"],
content: ["./index.html", "./src/**/*.{ts,tsx}"],
theme: {
extend: {
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
},
},
plugins: [],
};
export default config;

View File

@@ -5,7 +5,9 @@
"module": "ESNext", "module": "ESNext",
"moduleResolution": "Bundler", "moduleResolution": "Bundler",
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"types": ["node"] "types": ["node"],
"outDir": "./.cache/tsc-node",
"tsBuildInfoFile": "./.cache/tsc-node/tsconfig.node.tsbuildinfo"
}, },
"include": ["vite.config.ts", "tailwind.config.ts"] "include": ["vite.config.ts", "tailwind.config.ts"]
} }

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/ui/button.tsx","./src/components/ui/input.tsx","./src/components/ui/scroll-area.tsx","./src/components/ui/separator.tsx","./src/components/ui/textarea.tsx","./src/lib/api.ts","./src/lib/utils.ts"],"version":"5.9.3"} {"root":["./src/App.tsx","./src/main.tsx","./src/root-router.tsx","./src/vite-env.d.ts","./src/components/auth/auth-screen.tsx","./src/components/chat/chat-messages-panel.tsx","./src/components/markdown/markdown-content.tsx","./src/components/search/search-results-panel.tsx","./src/components/ui/button.tsx","./src/components/ui/input.tsx","./src/components/ui/scroll-area.tsx","./src/components/ui/separator.tsx","./src/components/ui/textarea.tsx","./src/hooks/use-session-auth.ts","./src/lib/api.ts","./src/lib/utils.ts","./src/pages/search-route-page.tsx"],"version":"5.9.3"}

View File

@@ -1,2 +0,0 @@
declare const _default: import("vite").UserConfig;
export default _default;

View File

@@ -1,11 +0,0 @@
import { defineConfig } from "vite";
import preact from "@preact/preset-vite";
import path from "node:path";
export default defineConfig({
plugins: [preact()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});

View File

@@ -4,6 +4,15 @@ import path from "node:path";
export default defineConfig({ export default defineConfig({
plugins: [preact()], plugins: [preact()],
server: {
proxy: {
"/api": {
target: "http://localhost:8787",
changeOrigin: true,
rewrite: (p) => p.replace(/^\/api/, ""),
},
},
},
resolve: { resolve: {
alias: { alias: {
"@": path.resolve(__dirname, "./src"), "@": path.resolve(__dirname, "./src"),