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:
@@ -8,6 +8,6 @@
|
||||
</head>
|
||||
<body class="antialiased">
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
<script type="module" src="./src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import './style.css'
|
||||
|
||||
const API_BASE = import.meta.env.BASE_URL + 'api'
|
||||
const API_BASE = '/api'
|
||||
const app = document.querySelector('#app')
|
||||
|
||||
const state = {
|
||||
|
||||
Reference in New Issue
Block a user