mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-24 17:44:50 +03:00
brings back compression for production
This commit is contained in:
parent
b665de4057
commit
424565b682
@ -34,6 +34,10 @@ app.prepare().then(async () => {
|
||||
server.use(cors());
|
||||
server.use(morgan(":method :url :status :res[content-length] - :response-time ms"));
|
||||
|
||||
if (Environment.IS_PRODUCTION) {
|
||||
server.use(compression());
|
||||
}
|
||||
|
||||
server.use("/public", express.static("public"));
|
||||
server.get("/system", async (r, s) => s.redirect("/_/system"));
|
||||
server.get("/experiences", async (r, s) => s.redirect("/_/system"));
|
||||
|
Loading…
Reference in New Issue
Block a user