Skip to content

Commit cc1011f

Browse files
committed
Add back isbot and compression
1 parent 3e0cdc2 commit cc1011f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/entry.ssr.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export async function generateHTML(
4141
},
4242
);
4343

44-
// if (isbot(userAgent)) {
45-
// await htmlStream.allReady;
46-
// }
44+
if (isbot(userAgent)) {
45+
await htmlStream.allReady;
46+
}
4747

4848
return htmlStream;
4949
},

server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// import compression from "compression";
1+
import compression from "compression";
22
import express from "express";
33
import morgan from "morgan";
44
import { rateLimit } from "express-rate-limit";
@@ -22,7 +22,7 @@ app.use(limiter);
2222

2323
// could use fastly's compression
2424
// jk already done
25-
// app.use(compression());
25+
app.use(compression());
2626
app.disable("x-powered-by");
2727

2828
// TODO: use remix fetch server and remove development

0 commit comments

Comments
 (0)