Rutas relativas
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="/src/styles.css">
|
||||
<link rel="stylesheet" href="./src/styles.css">
|
||||
<title>Experiencia Digital</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="min-h-screen bg-blue-800 flex flex-col items-center justify-center p-5 gap-20" id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
<script type="module" src="./src/main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -7,7 +7,7 @@ import NotFound from './pages/NotFound.tsx';
|
||||
import Home from './pages/Home.tsx';
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<BrowserRouter>
|
||||
<BrowserRouter basename="/visor3d">
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />} />
|
||||
<Route path="/login" element={<Login />} />
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -77,6 +77,8 @@ export default function Previewer({ modelUrl }: { modelUrl: string }) {
|
||||
const [nodePositions, setNodePositions] = useState<Record<string, [number, number, number]>>({});
|
||||
const [isFullscreen, setIsFullscreen] = useState(false);
|
||||
|
||||
nodePositions;
|
||||
|
||||
|
||||
const resetView = () => {
|
||||
if (controlsRef.current) {
|
||||
|
||||
@@ -4,6 +4,7 @@ import react from "@vitejs/plugin-react"
|
||||
import { defineConfig } from "vite"
|
||||
|
||||
export default defineConfig({
|
||||
base: "/visor3d/",
|
||||
plugins: [react(), tailwindcss()],
|
||||
resolve: {
|
||||
alias: {
|
||||
|
||||
Reference in New Issue
Block a user