Update dependencies and refactor server configuration: Upgrade @vue/cli and ESLint packages, replace moment.js with date-fns for date handling in eventController, and remove unused HTTPS server configuration in server.js. Additionally, streamline Vue.js build process by removing cache and thread loaders in vue.config.js.

This commit is contained in:
Torsten Schulz (local)
2026-04-08 08:44:31 +02:00
parent 6ffc1fedd9
commit 02487d44e9
13 changed files with 2229 additions and 7397 deletions

View File

@@ -1,9 +1,7 @@
const express = require('express');
const bodyParser = require('body-parser');
const cors = require('cors');
const https = require('https');
const http = require('http');
const fs = require('fs');
require('dotenv').config();
// Erhöhe maxHttpHeaderSize für Node.js (Standard ist 8KB, erhöhe auf 16KB)
@@ -113,16 +111,7 @@ app.use('/api/image', imageRouter);
app.use('/api/files', filesRouter);
app.use('/api/liturgical-days', liturgicalDaysRouter);
const options = {
key: fs.readFileSync('server.key'),
cert: fs.readFileSync('server.cert'),
};
sequelize.sync().then(() => {
/* https.createServer(options, app).listen(PORT, () => {
console.log(`Server läuft auf Port ${PORT}`);
});*/
app.listen(PORT, '0.0.0.0', () => {
console.log(`Server läuft auf Port ${PORT} (IPv4 und IPv6)`);
});