[dyad] wrote 4 file(s)

This commit is contained in:
Michael committed 2025-11-06 14:53:41 +01:00
1 parent 8c47369640
commit b282e9fc00
4 files changed
+32 -141

No files matched your search

+9 -1
View File
@@ -42,7 +42,15 @@ app.use(helmet({
}));
app.use(cors());
app.use(express.json());
app.use(express.static('public'));
// 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');
}
}
}));
// Set JWT_SECRET environment variable if not set
if (!process.env.JWT_SECRET) {