Fixed build error in vite.config
Browse filesX-Lovable-Edit-ID: edt-1dd68bc7-0166-4a28-bb2f-8f21a049b1e8
Co-authored-by: nextgenframes <281320089+nextgenframes@users.noreply.github.com>
- src/components/upload-dialog.tsx +1 -1
- src/{server/ai-config.ts β lib/ai-config.server.ts} +0 -0
- src/{server/av-knowledge.ts β lib/av-knowledge.server.ts} +0 -0
- src/{server β lib}/branch-debug.functions.ts +1 -1
- src/{server β lib}/forensic.functions.ts +1 -1
- src/{server β lib}/incidents.functions.ts +2 -2
- src/routes/api/public/branch-debug.ts +1 -1
- src/routes/dashboard.branch-debug.tsx +1 -1
- src/routes/dashboard.forensic.tsx +1 -1
- src/routes/dashboard.index.tsx +1 -1
- vite.config.ts +1 -1
src/components/upload-dialog.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import { Upload, FileText, FileType, Video, Loader2 } from "lucide-react";
|
|
| 9 |
import { supabase } from "@/integrations/supabase/client";
|
| 10 |
import { toast } from "sonner";
|
| 11 |
import { useServerFn } from "@tanstack/react-start";
|
| 12 |
-
import { analyzeIncident } from "@/
|
| 13 |
|
| 14 |
export function UploadDialog({ onCreated }: { onCreated?: (id: string) => void }) {
|
| 15 |
const [open, setOpen] = useState(false);
|
|
|
|
| 9 |
import { supabase } from "@/integrations/supabase/client";
|
| 10 |
import { toast } from "sonner";
|
| 11 |
import { useServerFn } from "@tanstack/react-start";
|
| 12 |
+
import { analyzeIncident } from "@/lib/incidents.functions";
|
| 13 |
|
| 14 |
export function UploadDialog({ onCreated }: { onCreated?: (id: string) => void }) {
|
| 15 |
const [open, setOpen] = useState(false);
|
src/{server/ai-config.ts β lib/ai-config.server.ts}
RENAMED
|
File without changes
|
src/{server/av-knowledge.ts β lib/av-knowledge.server.ts}
RENAMED
|
File without changes
|
src/{server β lib}/branch-debug.functions.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
-
import { fetchAIWithFallback, getAIConfig } from "./ai-config";
|
| 3 |
import { z } from "zod";
|
| 4 |
|
| 5 |
const InputSchema = z.object({
|
|
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
+
import { fetchAIWithFallback, getAIConfig } from "./ai-config.server";
|
| 3 |
import { z } from "zod";
|
| 4 |
|
| 5 |
const InputSchema = z.object({
|
src/{server β lib}/forensic.functions.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
import { z } from "zod";
|
| 3 |
import { sanitize, restore } from "./branch-debug.functions";
|
| 4 |
-
import { fetchAIWithFallback, getAIConfig } from "./ai-config";
|
| 5 |
|
| 6 |
// βββββββββββββββββββββββββ SSRF Guard βββββββββββββββββββββββββ
|
| 7 |
// Reject loopback, private (RFC1918), link-local, and cloud metadata addresses
|
|
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
import { z } from "zod";
|
| 3 |
import { sanitize, restore } from "./branch-debug.functions";
|
| 4 |
+
import { fetchAIWithFallback, getAIConfig } from "./ai-config.server";
|
| 5 |
|
| 6 |
// βββββββββββββββββββββββββ SSRF Guard βββββββββββββββββββββββββ
|
| 7 |
// Reject loopback, private (RFC1918), link-local, and cloud metadata addresses
|
src/{server β lib}/incidents.functions.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
import { supabaseAdmin } from "@/integrations/supabase/client.server";
|
| 3 |
-
import { fetchAIWithFallback, getAIConfig } from "./ai-config";
|
| 4 |
-
import { AV_KNOWLEDGE_BASE } from "./av-knowledge";
|
| 5 |
import { z } from "zod";
|
| 6 |
|
| 7 |
const InputSchema = z.object({
|
|
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
import { supabaseAdmin } from "@/integrations/supabase/client.server";
|
| 3 |
+
import { fetchAIWithFallback, getAIConfig } from "./ai-config.server";
|
| 4 |
+
import { AV_KNOWLEDGE_BASE } from "./av-knowledge.server";
|
| 5 |
import { z } from "zod";
|
| 6 |
|
| 7 |
const InputSchema = z.object({
|
src/routes/api/public/branch-debug.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import { createFileRoute } from "@tanstack/react-router";
|
| 2 |
import { createHash, timingSafeEqual } from "node:crypto";
|
| 3 |
-
import { analyzeDiff } from "@/
|
| 4 |
|
| 5 |
// This endpoint exists for the VS Code / CLI helper. It is no longer open to
|
| 6 |
// the world: every request must carry a shared bearer token that matches the
|
|
|
|
| 1 |
import { createFileRoute } from "@tanstack/react-router";
|
| 2 |
import { createHash, timingSafeEqual } from "node:crypto";
|
| 3 |
+
import { analyzeDiff } from "@/lib/branch-debug.functions";
|
| 4 |
|
| 5 |
// This endpoint exists for the VS Code / CLI helper. It is no longer open to
|
| 6 |
// the world: every request must carry a shared bearer token that matches the
|
src/routes/dashboard.branch-debug.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { createFileRoute } from "@tanstack/react-router";
|
|
| 2 |
import { useState, useEffect, useRef } from "react";
|
| 3 |
import { GitBranch, Play, RotateCcw, Shield, ChevronLeft, ChevronRight, Check, Loader2, Sparkles, FileCode, ExternalLink, Copy, Eye, ArrowRight, Download, FileJson, FileText, Terminal, Edit3, Lock, Send, Brain, Unlock, Target, Ticket, Link2, Paperclip, type LucideIcon } from "lucide-react";
|
| 4 |
import { useServerFn } from "@tanstack/react-start";
|
| 5 |
-
import { debugBranch, debugSnippet, type DebugResult, type Suspect } from "@/
|
| 6 |
import { Button } from "@/components/ui/button";
|
| 7 |
import { Textarea } from "@/components/ui/textarea";
|
| 8 |
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DialogDescription } from "@/components/ui/dialog";
|
|
|
|
| 2 |
import { useState, useEffect, useRef } from "react";
|
| 3 |
import { GitBranch, Play, RotateCcw, Shield, ChevronLeft, ChevronRight, Check, Loader2, Sparkles, FileCode, ExternalLink, Copy, Eye, ArrowRight, Download, FileJson, FileText, Terminal, Edit3, Lock, Send, Brain, Unlock, Target, Ticket, Link2, Paperclip, type LucideIcon } from "lucide-react";
|
| 4 |
import { useServerFn } from "@tanstack/react-start";
|
| 5 |
+
import { debugBranch, debugSnippet, type DebugResult, type Suspect } from "@/lib/branch-debug.functions";
|
| 6 |
import { Button } from "@/components/ui/button";
|
| 7 |
import { Textarea } from "@/components/ui/textarea";
|
| 8 |
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DialogDescription } from "@/components/ui/dialog";
|
src/routes/dashboard.forensic.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
| 9 |
type Stage1Result,
|
| 10 |
type Stage2Result,
|
| 11 |
type Stage3Result,
|
| 12 |
-
} from "@/
|
| 13 |
import { Button } from "@/components/ui/button";
|
| 14 |
import { Textarea } from "@/components/ui/textarea";
|
| 15 |
import { Input } from "@/components/ui/input";
|
|
|
|
| 9 |
type Stage1Result,
|
| 10 |
type Stage2Result,
|
| 11 |
type Stage3Result,
|
| 12 |
+
} from "@/lib/forensic.functions";
|
| 13 |
import { Button } from "@/components/ui/button";
|
| 14 |
import { Textarea } from "@/components/ui/textarea";
|
| 15 |
import { Input } from "@/components/ui/input";
|
src/routes/dashboard.index.tsx
CHANGED
|
@@ -11,7 +11,7 @@ import { Button } from "@/components/ui/button";
|
|
| 11 |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
|
| 12 |
import { Loader2, AlertTriangle, FileText, Cpu, Shield, Activity, BookText, Download, RefreshCw, Trash2 } from "lucide-react";
|
| 13 |
import { useServerFn } from "@tanstack/react-start";
|
| 14 |
-
import { analyzeIncident } from "@/
|
| 15 |
import { toast } from "sonner";
|
| 16 |
import { cn } from "@/lib/utils";
|
| 17 |
|
|
|
|
| 11 |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
|
| 12 |
import { Loader2, AlertTriangle, FileText, Cpu, Shield, Activity, BookText, Download, RefreshCw, Trash2 } from "lucide-react";
|
| 13 |
import { useServerFn } from "@tanstack/react-start";
|
| 14 |
+
import { analyzeIncident } from "@/lib/incidents.functions";
|
| 15 |
import { toast } from "sonner";
|
| 16 |
import { cn } from "@/lib/utils";
|
| 17 |
|
vite.config.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { defineConfig } from "@lovable.dev/vite-tanstack-config";
|
|
| 2 |
export default defineConfig({
|
| 3 |
vite: {
|
| 4 |
server: {
|
| 5 |
-
allowedHosts:
|
| 6 |
},
|
| 7 |
},
|
| 8 |
});
|
|
|
|
| 2 |
export default defineConfig({
|
| 3 |
vite: {
|
| 4 |
server: {
|
| 5 |
+
allowedHosts: true,
|
| 6 |
},
|
| 7 |
},
|
| 8 |
});
|