File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,14 @@ you can remove it. Alternatively you can
85
85
support. See [ ` demos/next-export ` ] ( https://github.com/netlify/netlify-plugin-nextjs/tree/main/demos/next-export ) for an
86
86
example.
87
87
88
+ ## Generated functions
89
+
90
+ This plugin works by generating three Netlify functions that handle requests that haven't been pre-rendered. These are
91
+ ` ___netlify-handler ` (for SSR and API routes), ` ___netlify-odb-handler ` (for ISR and fallback routes), and ` _ipx ` (for
92
+ images). You can see the requests for these in [ the function logs] ( https://docs.netlify.com/functions/logs/ ) . For ISR
93
+ and fallback routes you will not see any requests that are served from the edge cache, just actual rendering requests.
94
+ These are all internal functions, so you won't find them in your site's own functions directory.
95
+
88
96
## Feedback
89
97
90
98
If you think you have found a bug in the plugin,
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ const makeHandler =
99
99
multiValueHeaders [ 'cache-control' ] = [ 'public, max-age=0, must-revalidate' ]
100
100
}
101
101
multiValueHeaders [ 'x-render-mode' ] = [ requestMode ]
102
+ console . log ( `[${ event . httpMethod } ] ${ event . path } (${ requestMode ?. toUpperCase ( ) } )` )
102
103
return {
103
104
...result ,
104
105
multiValueHeaders,
You can’t perform that action at this time.
0 commit comments