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:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -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
@@ -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
2
vite.config.d.ts
vendored
@@ -1,2 +0,0 @@
|
|||||||
declare const _default: import("vite").UserConfig;
|
|
||||||
export default _default;
|
|
||||||
@@ -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,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user