Skip to content

Commit f4618c2

Browse files
author
proghead00
committed
ss
1 parent d3181dd commit f4618c2

File tree

5 files changed

+4
-1
lines changed

5 files changed

+4
-1
lines changed

coursefry ss/20220113_211010.gif

11.1 MB
Loading

coursefry ss/Screenshot_1.png

580 KB
Loading

coursefry ss/Screenshot_2.png

445 KB
Loading

server/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ app.get("/api/csrf-token", (req, res) => {
5454
res.json({ csrfToken: req.csrfToken() });
5555
});
5656

57+
if (process.env.NODE_ENV === "production") {
58+
app.use(express.static("client/.next"));
59+
}
5760
// port
5861
const port = process.env.PORT || 8000;
5962
app.listen(port, () => console.log(`Server on port ${port}`));

server/routes/course.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ router.get("/course/:slug", read);
4646
router.post(
4747
"/course/video-upload/:instructorId",
4848
requireSignin,
49-
formidable(),
49+
formidable({ maxFileSize: 500 * 1024 * 1024 }),
5050
uploadVideo,
5151
addLesson
5252
);

0 commit comments

Comments
 (0)