From c72c79268eea31cc31edd63b6f30e3d535dfe2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Aubert?= Date: Thu, 18 Jul 2024 04:39:30 +0200 Subject: [PATCH] changes --- back/app.js | 4 ++-- front/.gitignore | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/back/app.js b/back/app.js index 365c42b..acbde88 100644 --- a/back/app.js +++ b/back/app.js @@ -14,7 +14,7 @@ app.use(cors()); app.use(express.urlencoded({ extended: true })); -app.use(express.json({ limit: "50mb" })); +app.use(express.json()); app.use(bodyParser.json()); app.use(function (req, res, next) { @@ -36,7 +36,7 @@ app.use("/gallery", require("./routes/gallery")); app.use("/data", require("./routes/data")); app.listen(process.env.PORT, () => { - console.log("Server is running at http://localhost:3000"); + console.log("Server is running at http://localhost:" + process.env.PORT); }); module.exports = app; diff --git a/front/.gitignore b/front/.gitignore index f7138b5..d9be50d 100644 --- a/front/.gitignore +++ b/front/.gitignore @@ -24,4 +24,8 @@ dist-ssr *.sw? .env -.DS_Store \ No newline at end of file +.DS_Store + +dist + +.vite \ No newline at end of file