File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
packages/runtime/src/templates Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,13 @@ class NetlifyNextServer extends NextServer {
22
22
const handler = super . getRequestHandler ( )
23
23
return async ( req , res , parsedUrl ) => {
24
24
if ( req . headers [ 'x-prerender-revalidate' ] ) {
25
- if ( this . netlifyRevalidateToken ) {
26
- try {
27
- await this . netlifyRevalidate ( req . url )
28
- console . log ( 'Revalidated' , req . url )
29
- } catch ( error ) {
30
- // TODO: status 500 error refreshing ODB cache
31
- console . log ( 'Error revalidating' , req . url , error )
32
- }
33
- } else {
34
- // TODO: status 400 refresh hooks not enabled for site in proxy
35
- console . log ( 'Missing revalidate token' , req . url )
36
- }
25
+ // if (this.netlifyRevalidateToken) {
26
+ throw new Error ( `Test throw` )
27
+ // await this.netlifyRevalidate(req.url)
28
+ // console.log('Revalidated', req.url)
29
+ // } else {
30
+ // throw new Error(`Missing revalidate token`)
31
+ // }
37
32
}
38
33
return handler ( req , res , parsedUrl )
39
34
}
You can’t perform that action at this time.
0 commit comments