diff --git a/scripts/build-database/markdownImagePlugin.js b/scripts/build-database/markdownImagePlugin.js
index cd88d3536fdb89cc8572939e671d2306df4b794f..f8472eeeb51807708b1eae7142049e55e152319c 100644
--- a/scripts/build-database/markdownImagePlugin.js
+++ b/scripts/build-database/markdownImagePlugin.js
@@ -10,7 +10,13 @@ const attacher = () => {
 };
 
 const imageVisitor = (node) => {
-  // console.log('node:', JSON.stringify(node, null, 2));
+  let host;
+  if (process.env.DEPLOYMENT === 'NOW') {
+    host = 'https://zeit-serverless-exercise.now.sh';
+  } else {
+    host = 'http://localhost:3000';
+  }
+  node.url = `${host}${node.url}`;
 };
 
 module.exports = attacher;