We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e22f57a commit cd476ccCopy full SHA for cd476cc
commands/storybook.js
@@ -165,6 +165,11 @@ async function storybook(serve, options) {
165
// Call static render API
166
await axios.post(new URL(constants[options.env].STATIC_RENDER_PATH, constants[options.env].BASE_URL).href, payload)
167
.then(async function (response) {
168
+ if (response.data && response.data.error) {
169
+ console.log('[smartui] Error: ', response.data.error.message);
170
+ process.exitCode = constants.ERROR_CATCHALL;
171
+ return
172
+ }
173
console.log('[smartui] Build URL: ', response.data.data.buildURL);
174
console.log('[smartui] Build in progress...');
175
await shortPolling(response.data.data.buildId, 0, options);
0 commit comments