You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next.js automatically optimise the page client build based on whether they implement `getStaticProps` (SSG) or `getServerSideProps` (SSR).
8
+
9
+
For instance, all code within `getStaticProps` and `getServerSideProps` is automatically stripped from the browser bundle.
10
+
But, it's also the case for top-level `import` that are only used within those functions.
11
+
12
+
### Visualise bundle optimisation
13
+
14
+
[https://next-code-elimination.now.sh/](https://next-code-elimination.now.sh/) will help you visualise the difference between the code you write and what's actually bundled into the client.
0 commit comments