feat(dev): add local auth bypass mode
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
2026-05-02 15:32:48 -04:00
parent 00faf9cea8
commit a950d50440
10 changed files with 140 additions and 5 deletions

View File

@@ -64,7 +64,18 @@ Also follow the repository root guide at `../AGENTS.md`.
- `bun run build` still runs `tsc && vite build`, so unrelated TypeScript issues elsewhere in `src/` can fail the build.
- When possible, validate changed files directly before escalating to full-project fixes.
## 7) Updating This File
## 7) Live Dev Server Debugging
- Use `glimpse` to inspect the running Vite dev server at `localhost:5173`:
```bash
glimpse snapshot http://localhost:5173/some-page --wait-until=complete --timeout=15000
glimpse screenshot http://localhost:5173/some-page --wait-until=complete --output=_scratch/page.png
glimpse exec http://localhost:5173/some-page --wait-until=complete --timeout=20000 --js='return document.title'
```
- Use `curl` for API endpoint testing (both `localhost:5173` via proxy and `localhost:8585` directly).
- Do not monkey-patch `window.fetch` in `glimpse exec`; Firefox rejects it. Test API calls with `curl` instead.
## 8) Updating This File
After completing a frontend task, update this file if you learned something general that would help future frontend agents.

View File

@@ -4,7 +4,7 @@
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev": "vite --host",
"typecheck": "tsc --noEmit",
"build": "tsc && vite build",
"preview": "vite preview",

View File

@@ -4,6 +4,7 @@ import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
allowedHosts: ['lin-va-terminal'],
proxy: {
'/api': {
target: 'http://localhost:8585',