[dyad] wrote 2 file(s)

This commit is contained in:
Michael committed 2025-11-06 14:55:45 +01:00
1 parent b282e9fc00
commit 442dc19689
2 files changed
+600 -13

No files matched your search

+1 -9
View File
@@ -42,15 +42,7 @@ app.use(helmet({
}));
app.use(cors());
app.use(express.json());
// Serve static files with correct MIME types
app.use(express.static('public', {
setHeaders: (res, path) => {
if (path.endsWith('.css')) {
res.setHeader('Content-Type', 'text/css');
}
}
}));
app.use(express.static('public'));
// Set JWT_SECRET environment variable if not set
if (!process.env.JWT_SECRET) {