lib/services/publish.js
function _checkForDynamicPage(uri, { _dynamic }) {
  if (!_dynamic || typeof _dynamic !== 'boolean') {
    return bluebird.reject(new Error('Page is not dynamic and requires a url'));
  }

  return bluebird.resolve(_dynamic);
}
function _checkForDynamicPage(uri, { _dynamic }) {
  if (!_dynamic || typeof _dynamic !== 'boolean') {
    return bluebird.reject(new Error('Page is not dynamic and requires a url'));
  }

  return bluebird.resolve(_dynamic);
}
function _checkForDynamicPage ( uri , { _dynamic } ) { if ( ! _dynamic || typeof _dynamic !== 'boolean' ) { return bluebird . reject ( new Error ( 'Page is not dynamic and requires a url' ) ) ; } return bluebird . resolve ( _dynamic ) ; }
Allow a page to be published if it is dynamic. This allows the page
to be published, but the pages service has the logic to not create
a _uri to point to the page

@param  {String} uri
@param  {Boolean|Undefined} _dynamic
@return {Promise}
Allow a page to be published if it is dynamic . This allows the page to be published but the pages service has the logic to not create a _uri to point to the page