File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/runtime/src/templates Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,16 @@ const getNetlifyNextServer = (NextServer: NextServerType) => {
46
46
const manifest = super . getPrerenderManifest ( )
47
47
48
48
if ( typeof manifest ?. dynamicRoutes === 'object' ) {
49
- // remove the fallback: true routes from the manifest
50
- // because we don't want to prerender them
51
49
for ( const route of Object . values ( manifest . dynamicRoutes ) ) {
52
- if ( route . fallback !== null ) {
50
+ // 'fallback' property is:
51
+ // - a string when fallback: true is used
52
+ // - `null` when fallback: blocking is used
53
+ // - `false` when fallback: false is used
54
+ // `fallback: true` is not working correctly with ODBs
55
+ // as we will cache fallback html forever, so
56
+ // we are treating those as `fallback: blocking`
57
+ // by editing the manifest
58
+ if ( typeof route . fallback === 'string' ) {
53
59
route . fallback = null
54
60
}
55
61
}
You can’t perform that action at this time.
0 commit comments