chore: gitignore tsc -b build cache + vite.config emit

Build pipeline 'tsc -b && vite build' produces .tsbuildinfo + an
accidental vite.config.{js,d.ts} emit from project references.
Untrack + ignore so they don't keep coming back to dirty git status.
This commit is contained in:
h z
2026-05-24 00:15:54 +01:00
parent 3dbb5abaf6
commit a6258da84e
5 changed files with 6 additions and 25 deletions

6
.gitignore vendored
View File

@@ -5,3 +5,9 @@ dist
*.local *.local
.DS_Store .DS_Store
*.swp *.swp
# TypeScript build cache + accidental emit from vite.config (tsc -b)
*.tsbuildinfo
vite.config.d.ts
vite.config.js
vite.config.js.map

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
{"root":["./src/App.tsx","./src/api.ts","./src/auth.tsx","./src/main.tsx","./src/types.ts","./src/util.ts","./src/pages/AgentActivity.tsx","./src/pages/NotFound.tsx","./src/pages/TopicDetail.tsx","./src/pages/TopicList.tsx","./src/pages/Verdict.tsx"],"version":"5.9.3"}

2
vite.config.d.ts vendored
View File

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

View File

@@ -1,21 +0,0 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// Dev server proxies /api → the dialectic-backend so the SPA can run
// without CORS knobs at dev time. In prod the SPA + backend sit behind
// the same hostname (nginx rewrites /api/ → backend container).
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
'/api': {
target: process.env.VITE_DIALECTIC_BACKEND ?? 'http://localhost:8090',
changeOrigin: false,
},
},
},
build: {
outDir: 'dist',
sourcemap: true,
},
});