Bird
0
0

You want to optimize a Remix app for a static site deployment target. Which architectural change is best?

hard📝 Application Q8 of 15
Remix - Deployment
You want to optimize a Remix app for a static site deployment target. Which architectural change is best?
ARely on serverless functions for all data fetching
BPre-render pages at build time and avoid server-side data fetching
CUse server-side sessions and dynamic API calls on every request
DUse persistent WebSocket connections for real-time updates
Step-by-Step Solution
Solution:
  1. Step 1: Understand static deployment constraints

    Static sites serve pre-built HTML without server-side runtime.
  2. Step 2: Adapt architecture for static

    Pre-rendering pages at build time avoids runtime data fetching and fits static hosting.
  3. Final Answer:

    Pre-render pages at build time and avoid server-side data fetching -> Option B
  4. Quick Check:

    Static target = Pre-rendered pages [OK]
Quick Trick: Static sites need pre-rendered pages, no runtime fetch [OK]
Common Mistakes:
MISTAKES
  • Using server-side sessions on static sites
  • Expecting serverless functions to run on static hosting
  • Trying to use WebSockets without a server

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Remix Quizzes