My app is 10 times slower in production
Hey folks, my local env takes 200ms to load the server-rendered HTML, production takes 2.2s. The latency increase is insane. How do you debug this? I'm not running any database queries. It's a Remix app that server renders a landing page.
Here's the app https://yup-258-marketing-pages-take-i932.yupty-front.pages.dev/


1 Reply
I've timed every function call in my
entry.server.tsx
using Server-Timing headers and I don't see anything wrong here
The only thing that could raise concerns is not loading the modules fast enough because I do a bunch of dynamic importing in getLoadContext
because the worker times out if I import synchronously :/