fix: change folder location base path for imports to deploy

This commit is contained in:
Jan-Henrik Bruhn 2025-10-10 12:02:09 +02:00
parent 4e335a8fde
commit 236d394276
2 changed files with 16 additions and 15 deletions

View file

@ -2,12 +2,12 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Constellation Analyzer</title> <title>Constellation Analyzer</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script type="module" src="/src/main.tsx"></script> <script type="module" src="src/main.tsx"></script>
</body> </body>
</html> </html>

View file

@ -1,11 +1,12 @@
import { defineConfig } from 'vite' import { defineConfig } from "vite";
import react from '@vitejs/plugin-react' import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
base: "./",
server: { server: {
port: 3000, port: 3000,
open: true open: true,
} },
}) });