Skip to content

Commit 2546f2c

Browse files
committed
chore: make odb terminology consistent
1 parent c5f2a9a commit 2546f2c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

demos/default/pages/getStaticProps/with-revalidate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function getStaticProps(context) {
2525
props: {
2626
show: data,
2727
},
28-
revalidate: 1,
28+
revalidate: 60,
2929
}
3030
}
3131

packages/runtime/src/templates/getHandler.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ const makeHandler = (conf: NextConfig, app, pageRoot, staticManifest: Array<[str
129129
// Long-expiry TTL is basically no TTL, so we'll skip it
130130
if (ttl > 0 && ttl < ONE_YEAR_IN_SECONDS) {
131131
result.ttl = ttl
132-
requestMode = 'isr'
132+
requestMode = `odb ttl=${ttl}`
133133
}
134134
}
135135
multiValueHeaders['cache-control'] = ['public, max-age=0, must-revalidate']
136136
}
137-
multiValueHeaders['x-render-mode'] = [requestMode]
138-
console.log(
139-
`[${event.httpMethod}] ${event.path} (${requestMode?.toUpperCase()}${result.ttl > 0 ? ` ${result.ttl}s` : ''})`,
140-
)
137+
multiValueHeaders['x-nf-render-mode'] = [requestMode]
138+
139+
console.log(`[${event.httpMethod}] ${event.path} (${requestMode?.toUpperCase()})`)
140+
141141
return {
142142
...result,
143143
multiValueHeaders,

0 commit comments

Comments
 (0)