mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-29 06:43:17 -05:00
compression try number 2
This commit is contained in:
4
index.js
4
index.js
@@ -175,6 +175,8 @@ if (process.env.NODE_ENV === "production") {
|
||||
|
||||
app.use(session(sess))
|
||||
|
||||
app.use(compression())
|
||||
|
||||
app.use(express.static("build"))
|
||||
|
||||
app.use(passport.initialize())
|
||||
@@ -199,8 +201,6 @@ app.get("/logout", function (req, res) {
|
||||
res.redirect("/")
|
||||
})
|
||||
|
||||
app.use(compression())
|
||||
|
||||
app.get("*", (req, res) => {
|
||||
res.sendFile(path.resolve(__dirname, "build", "index.html"))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user