Skip to content

Commit b6ef513

Browse files
authored
fix: change location and display of preview warning (#271)
1 parent b5dd80f commit b6ef513

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/msha/server.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ function onServerStart(server: https.Server | http.Server, socketConnection: net
109109
}
110110
}
111111

112+
let warningMessage = `\n\nThis CLI is currently in preview and runs an emulator that may not match the \n`;
113+
warningMessage += `cloud environment exactly. Always deploy and test your app in Azure.\n`;
114+
115+
// logger.log(`${chalk.yellowBright(warningMessage)}`);
116+
logger.log(warningMessage);
117+
112118
// note: this string must not change. It is used by the VS Code extension.
113119
// see: https://github.com/Azure/static-web-apps-cli/issues/124
114120
//--------------------------------------------------------------------------------
@@ -119,13 +125,6 @@ function onServerStart(server: https.Server | http.Server, socketConnection: net
119125

120126
logger.log(logMessage);
121127

122-
let warningMessage = `******************************************************************************\n`;
123-
warningMessage += `** This CLI is still in preview and runs an emulator that may not match the **\n`;
124-
warningMessage += `** cloud environment exactly. Always deploy and test your app in Azure. **\n`;
125-
warningMessage += `******************************************************************************\n`;
126-
127-
logger.log(`${chalk.yellowBright(warningMessage)}`);
128-
129128
server.on("upgrade", onWsUpgrade());
130129

131130
registerProcessExit(() => {

0 commit comments

Comments
 (0)