mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-18 20:59:35 +02:00
[dyad] wrote 4 file(s)
This commit is contained in:
1 parent
8c47369640
commit
b282e9fc00
4 files changed
+32
-141
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user