Version 1.3.0-rc5 - Finalisation du Docker

This commit is contained in:
2025-10-04 18:58:41 +02:00
parent 53b8ace01a
commit f73a0e324d
4 changed files with 1361 additions and 1007 deletions

17
server.js Normal file
View File

@@ -0,0 +1,17 @@
const express = require('express');
const path = require('path');
const app = express();
const port = process.env.PORT || 4001;
// Servir les fichiers statiques du build
app.use(express.static(path.join(__dirname, 'dist')));
// Pour toutes les autres routes, renvoyer index.html (Vue Router history mode)
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
});
app.listen(port, () => {
console.log(`Server running on port ${port}`);
});