Skip to content

Commit 346c1ab

Browse files
mxstbrKyleAMathews
authored andcommitted
chore(gatsby): add log to gatsby develop if Admin is enabled (#25943)
1 parent 600e53e commit 346c1ab

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

packages/gatsby/src/utils/print-instructions.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,27 @@ export function printInstructions(appName: string, urls: IPreparedUrls): void {
4141
console.log(` ${urls.localUrlForTerminal}___graphql`)
4242
}
4343

44+
if (process.env.GATSBY_EXPERIMENTAL_ENABLE_ADMIN) {
45+
console.log()
46+
console.log(
47+
`View Admin, an in-browser app to manage your site's configuration`
48+
)
49+
console.log()
50+
51+
if (urls.lanUrlForTerminal) {
52+
console.log(
53+
` ${chalk.bold(`Local:`)} ${
54+
urls.localUrlForTerminal
55+
}___admin`
56+
)
57+
console.log(
58+
` ${chalk.bold(`On Your Network:`)} ${urls.lanUrlForTerminal}___admin`
59+
)
60+
} else {
61+
console.log(` ${urls.localUrlForTerminal}___admin`)
62+
}
63+
}
64+
4465
console.log()
4566
console.log(`Note that the development build is not optimized.`)
4667
console.log(

0 commit comments

Comments
 (0)