mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-18 04:39:18 +02:00
[dyad] wrote 2 file(s)
This commit is contained in:
1 parent
b282e9fc00
commit
442dc19689
2 files changed
+600
-13
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user