@netlify/plugin-nextjs 4.28.7 → 4.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,6 +92,13 @@ const makeHandler = (conf, app, pageRoot, staticManifest = [], mode = 'ssr') =>
92
92
  const { headers, ...result } = await getBridge(event).launcher(event, context);
93
93
  // Convert all headers to multiValueHeaders
94
94
  const multiValueHeaders = getMultiValueHeaders(headers);
95
+ if (event.headers['x-next-debug-logging']) {
96
+ const response = {
97
+ headers: multiValueHeaders,
98
+ statusCode: result.statusCode,
99
+ };
100
+ console.log('Origin response:', JSON.stringify(response, null, 2));
101
+ }
95
102
  if ((_b = (_a = multiValueHeaders['set-cookie']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.includes('__prerender_bypass')) {
96
103
  delete multiValueHeaders.etag;
97
104
  multiValueHeaders['cache-control'] = ['no-cache'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/plugin-nextjs",
3
- "version": "4.28.7",
3
+ "version": "4.29.0",
4
4
  "description": "Run Next.js seamlessly on Netlify",
5
5
  "main": "index.js",
6
6
  "files": [