Skip to content

Commit

Permalink
Merge branch 'canary' into docs/i18n-export
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Nov 19, 2020
2 parents 0fde781 + 8193df5 commit 4b43376
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ const nextServerlessLoader: loader.Loader = function () {
const {
default: getRouteNoAssetPath,
} = require('next/dist/next-server/lib/router/utils/get-route-from-asset-path');
_nextData = true;
_nextData = ${page === '/_error' ? 'false' : 'true'};
parsedUrl.pathname = getRouteNoAssetPath(
parsedUrl.pathname.replace(
new RegExp('/_next/data/${escapedBuildId}/'),
Expand Down
5 changes: 5 additions & 0 deletions test/integration/prerender/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1785,6 +1785,11 @@ const runTests = (dev = false, isEmulatedServerless = false) => {
})
}
}

// this should come very last
it('should not have attempted sending invalid payload', async () => {
expect(stderr).not.toContain('argument entity must be string')
})
}

describe('SSG Prerender', () => {
Expand Down

0 comments on commit 4b43376

Please sign in to comment.