diff --git a/docs/config/services/deployments/production.js b/docs/config/services/deployments/production.js index 2e090bf3d5a9..747e7a1016bd 100644 --- a/docs/config/services/deployments/production.js +++ b/docs/config/services/deployments/production.js @@ -13,9 +13,9 @@ var cdnUrl = googleCdnUrl + versionInfo.cdnVersion; // The currentVersion may not be available on the cdn (e.g. if built locally, or hasn't been pushed // yet). This will lead to a 404, but this is preferable to loading a version with which the example // might not work (possibly in subtle ways). -var examplesCdnUrl = versionInfo.isSnapshot ? +var examplesCdnUrl = versionInfo.currentVersion.isSnapshot ? (angularCodeUrl + 'snapshot') : - (googleCdnUrl + (versionInfo.version || versionInfo.currentVersion)); + (googleCdnUrl + (versionInfo.currentVersion.version || versionInfo.currentVersion)); module.exports = function productionDeployment(getVersion) { return {