Skip to content

Commit

Permalink
Update stats-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Dec 29, 2020
1 parent 98b417d commit 18abeca
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/actions/next-stats-action/src/add-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ module.exports = async function addComment(
itemKey
)}</strong></summary>\n\n`

if (curDiff.length > 36 * 1000) {
if (curDiff.length > 36 * 1000 && !actionInfo.isLocal) {
diffContent += 'Diff too large to display'
} else {
diffContent += `\`\`\`diff\n${curDiff}\n\`\`\``
Expand Down
46 changes: 23 additions & 23 deletions test/.stats-app/stats-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,28 +112,28 @@ module.exports = {
numRequests: 2500,
},
},
{
title: 'Serverless Mode',
diff: false,
renames,
configFiles: [
{
path: 'next.config.js',
content: `
module.exports = {
generateBuildId: () => 'BUILD_ID',
target: 'serverless'
}
`,
},
],
filesToTrack: [
...clientGlobs,
{
name: 'Serverless bundles',
globs: ['.next/serverless/pages/**/*'],
},
],
},
// {
// title: 'Serverless Mode',
// diff: false,
// renames,
// configFiles: [
// {
// path: 'next.config.js',
// content: `
// module.exports = {
// generateBuildId: () => 'BUILD_ID',
// target: 'serverless'
// }
// `,
// },
// ],
// filesToTrack: [
// ...clientGlobs,
// {
// name: 'Serverless bundles',
// globs: ['.next/serverless/pages/**/*'],
// },
// ],
// },
],
}

0 comments on commit 18abeca

Please sign in to comment.