refactor(index.js): fix import order

This commit is contained in:
Haileyesus
2026-04-25 16:17:21 +03:00
parent 1083746df5
commit 5d7d6e478e

View File

@@ -82,6 +82,7 @@ import { initializeDatabase, sessionsDb, applyCustomSessionNames } from './modul
import { configureWebPush } from './services/vapid-keys.js';
import { validateApiKey, authenticateToken, authenticateWebSocket } from './middleware/auth.js';
import { IS_PLATFORM } from './constants/config.js';
import { c } from './utils/colors.js';
const __dirname = getModuleDir(import.meta.url);
// The server source runs from /server, while the compiled output runs from /dist-server/server.
@@ -89,8 +90,6 @@ const __dirname = getModuleDir(import.meta.url);
const APP_ROOT = findAppRoot(__dirname);
const installMode = fs.existsSync(path.join(APP_ROOT, '.git')) ? 'git' : 'npm';
import { c } from './utils/colors.js';
console.log('SERVER_PORT from env:', process.env.SERVER_PORT);
const VALID_PROVIDERS = ['claude', 'codex', 'cursor', 'gemini'];