Fix asset and API paths for /carnews/ base URL

- Use relative path for script src to work with Vite base URL
- Keep API path as /api to match Vite proxy configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-27 15:04:57 -05:00
parent b8d4ea2b3d
commit e3842fb784
2 changed files with 2 additions and 2 deletions

View File

@@ -8,6 +8,6 @@
</head> </head>
<body class="antialiased"> <body class="antialiased">
<div id="app"></div> <div id="app"></div>
<script type="module" src="/src/main.js"></script> <script type="module" src="./src/main.js"></script>
</body> </body>
</html> </html>

View File

@@ -1,6 +1,6 @@
import './style.css' import './style.css'
const API_BASE = import.meta.env.BASE_URL + 'api' const API_BASE = '/api'
const app = document.querySelector('#app') const app = document.querySelector('#app')
const state = { const state = {