From c03973b0d31ee7adb8f4054d705e21a6db971e19 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Tue, 11 Mar 2025 11:07:44 -0600 Subject: [PATCH] Rutas relativas --- index.html | 4 ++-- src/main.tsx | 2 +- src/pages/App.tsx | 2 +- src/pages/Previewer.tsx | 2 ++ vite.config.ts | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 6ab634d..465c146 100644 --- a/index.html +++ b/index.html @@ -4,11 +4,11 @@ - + Experiencia Digital
- + diff --git a/src/main.tsx b/src/main.tsx index a559407..efeea0f 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -7,7 +7,7 @@ import NotFound from './pages/NotFound.tsx'; import Home from './pages/Home.tsx'; createRoot(document.getElementById('root')!).render( - + } /> } /> diff --git a/src/pages/App.tsx b/src/pages/App.tsx index aebf565..988d3e8 100644 --- a/src/pages/App.tsx +++ b/src/pages/App.tsx @@ -14,7 +14,7 @@ import { AlertDialogTitle, AlertDialogTrigger, } from "@/components/ui/alert-dialog" -import { useNavigate, useNavigation } from 'react-router'; +import { useNavigate } from 'react-router'; function App() { diff --git a/src/pages/Previewer.tsx b/src/pages/Previewer.tsx index 761819a..0dbb189 100644 --- a/src/pages/Previewer.tsx +++ b/src/pages/Previewer.tsx @@ -77,6 +77,8 @@ export default function Previewer({ modelUrl }: { modelUrl: string }) { const [nodePositions, setNodePositions] = useState>({}); const [isFullscreen, setIsFullscreen] = useState(false); + nodePositions; + const resetView = () => { if (controlsRef.current) { diff --git a/vite.config.ts b/vite.config.ts index 391abcb..4af4b06 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,6 +4,7 @@ import react from "@vitejs/plugin-react" import { defineConfig } from "vite" export default defineConfig({ + base: "/visor3d/", plugins: [react(), tailwindcss()], resolve: { alias: {