Skip to content

Commit 972b983

Browse files
authored
chore: add beta log message (#708)
1 parent 5686c09 commit 972b983

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ body:
5252
label: Your `netlify.toml` file
5353
description: (If you're using file-based config) Please provide a copy of your `netlify.toml` file.
5454
render: shell
55-
validations:
56-
required: true
5755
- type: textarea
5856
id: logs
5957
attributes:

src/helpers/verification.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path')
22

3-
const { yellowBright } = require('chalk')
3+
const { yellowBright, greenBright, blueBright } = require('chalk')
44
const { existsSync } = require('fs-extra')
55
const outdent = require('outdent')
66
const { satisfies } = require('semver')
@@ -52,3 +52,13 @@ exports.checkForRootPublish = ({ publish, failBuild }) => {
5252
In most cases it should be set to ".next", unless you have chosen a custom "distDir" in your Next config, or the Next site is in a subdirectory.`)
5353
}
5454
}
55+
56+
exports.logBetaMessage = () =>
57+
console.log(
58+
greenBright(
59+
outdent`
60+
Thank you for trying the Essential Next.js beta plugin.
61+
Please share feedback at ${blueBright`https://ntl.fyi/next-beta-feedback`}
62+
`,
63+
),
64+
)

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const {
1212
checkNextSiteHasBuilt,
1313
verifyBuildTarget,
1414
checkForRootPublish,
15+
logBetaMessage,
1516
} = require('./helpers/verification')
1617

1718
module.exports = {
@@ -23,6 +24,7 @@ module.exports = {
2324
cache,
2425
},
2526
}) {
27+
logBetaMessage()
2628
const { publish } = netlifyConfig.build
2729
checkForRootPublish({ publish, failBuild })
2830
verifyNetlifyBuildVersion({ failBuild, ...constants })
@@ -66,4 +68,7 @@ module.exports = {
6668
async onPostBuild({ netlifyConfig, utils: { cache } }) {
6769
return saveCache({ cache, publish: netlifyConfig.build.publish })
6870
},
71+
onEnd() {
72+
logBetaMessage()
73+
},
6974
}

0 commit comments

Comments
 (0)