Added all new changes from main github repo.

This commit is contained in:
Jiří Stach committed 2026-10-13 21:16:42 +02:00
1 parent 564975d0e3
commit 449ef46c84
30 files changed
+2288 -524

No files matched your search

+3
View File
@@ -4,6 +4,7 @@ import dotenv from 'dotenv';
import authRoutes from './src/server/routes/authRoutes';
import roundsRoutes from './src/server/routes/roundsRoutes';
import communityRoutes from './src/server/routes/communityRoutes';
import { db } from './src/server/db';
dotenv.config();
@@ -26,6 +27,8 @@ app.use('/api/rounds', roundsRoutes);
app.use('/api/community', communityRoutes);
async function startServer() {
// Initialize persistence backend (MariaDB Galera cluster if configured, or local store)
await db.init();
if (!isProduction) {
// Development mode: Vite middleware
const { createServer: createViteServer } = await import('vite');