diff --git a/Makefile b/Makefile
index 070bc3ba93f45fab693b8b9a773aa81dd2d13004..db5e4bd81b3c414639871f8e91009c8b00aa6656 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ verify:
 	sudo nginx -t
 
 build: build-swagger
-	grep -rl __BASE_URL__ . | xargs sed -i 's|__BASE_URL__|${BASE_URL}|g'
+	grep -rl __BASE_URL__ ./docs | xargs sed -i 's|__BASE_URL__|${BASE_URL}|g'
 	mkdocs build
 
 build-swagger: