Skip to content

Commit 6dfb01a

Browse files
update nextjs (#2372)
1 parent c6fa0fe commit 6dfb01a

File tree

4 files changed

+380
-75
lines changed

4 files changed

+380
-75
lines changed

frontends/main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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",

frontends/main/src/app/page.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
3244
const Page: React.FC = async () => {
3345
const { dehydratedState } = await prefetch([
3446
// Featured Courses carousel "All"

frontends/ol-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
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",

0 commit comments

Comments
 (0)