fix: set CC_BASE before api.js loads to fix login 404

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-03-26 13:14:00 +00:00
parent ca40d251d6
commit db4a431910
2 changed files with 2 additions and 3 deletions

View file

@ -15,7 +15,8 @@
<body>
<div id="app"></div>
<!-- JS load order matters -->
<!-- Base path must be defined before any other scripts -->
<script>window.CC_BASE = '/cc-dashboard';</script>
<script src="/cc-dashboard/static/js/api.js"></script>
<script src="/cc-dashboard/static/js/sse.js"></script>
<script src="/cc-dashboard/static/js/charts.js"></script>

View file

@ -1,8 +1,6 @@
/**
* SPA Router & app init.
*/
window.CC_BASE = '/cc-dashboard';
const App = (() => {
let _currentUser = null;