File tree Expand file tree Collapse file tree 4 files changed +380
-75
lines changed
Expand file tree Collapse file tree 4 files changed +380
-75
lines changed Original file line number Diff line number Diff line change 2626 "iso-639-1" : " ^3.1.4" ,
2727 "lodash" : " ^4.17.21" ,
2828 "moment" : " ^2.30.1" ,
29- "next" : " ^15.0.2 " ,
29+ "next" : " ^15.4.1 " ,
3030 "next-nprogress-bar" : " ^2.4.2" ,
3131 "ol-components" : " 0.0.0" ,
3232 "ol-utilities" : " 0.0.0" ,
Original file line number Diff line number Diff line change @@ -29,6 +29,18 @@ export async function generateMetadata({
2929 } )
3030}
3131
32+ /**
33+ * Fallback to dynamic rendering to load as much of the page as possible.
34+ *
35+ * We could alternatively wrap the carousels (which use useSearchParams) in a
36+ * suspense boundary. This ostensibly leads to a faster response, since the
37+ * server can render the rest of the homepage at build time.
38+ *
39+ * But... We ache the result on CDN anyway, so it's essentially pre-build for
40+ * most requests, anyway.
41+ */
42+ export const dynamic = "force-dynamic"
43+
3244const Page : React . FC = async ( ) => {
3345 const { dehydratedState } = await prefetch ( [
3446 // Featured Courses carousel "All"
Original file line number Diff line number Diff line change 3030 "classnames" : " ^2.5.1" ,
3131 "lodash" : " ^4.17.21" ,
3232 "material-ui-popup-state" : " ^5.1.0" ,
33- "next" : " ^15.0.2 " ,
33+ "next" : " ^15.4.1 " ,
3434 "ol-test-utilities" : " 0.0.0" ,
3535 "ol-utilities" : " 0.0.0" ,
3636 "react" : " ^19.0.0" ,
You can’t perform that action at this time.
0 commit comments