diff --git a/Gemfile b/Gemfile
index 4cae2af21c70ca8b81bb53c2ed7278a801e1a9e1..6c36ba7d6772e099f47047840866959d6a38b367 100644
--- a/Gemfile
+++ b/Gemfile
@@ -24,7 +24,7 @@ gem 'uglifier', '>= 1.3.0'
 # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
 gem 'webpacker'
 # See https://github.com/rails/execjs#readme for more supported runtimes
-# gem 'mini_racer', platforms: :ruby
+gem 'mini_racer', '~> 0.3.1', platforms: :ruby
 
 # Use CoffeeScript for .coffee assets and views
 gem 'coffee-rails', '~> 4.2'
@@ -79,7 +79,6 @@ gem 'omniauth-facebook'
 gem 'omniauth-google-oauth2'
 gem "omniauth-rails_csrf_protection"
 gem 'dotenv-rails', :groups => [:development,:test]
-gem 'mini_racer'
 gem 'bootstrap', '~> 4.0'
 gem 'jquery-rails'
 gem 'font-awesome-sass', '~> 5.15.1'
diff --git a/Gemfile.lock b/Gemfile.lock
index ba31e8a607234628e3c796441864fcc294d5d675..45968c69789a727ccf3764e32290ceba778175b1 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -187,8 +187,7 @@ GEM
     koala (2.5.0)
       addressable
       faraday
-    libv8-node (15.14.0.1)
-    libv8-node (15.14.0.1-x86_64-linux)
+    libv8 (8.4.255.0)
     listen (3.1.5)
       rb-fsevent (~> 0.9, >= 0.9.4)
       rb-inotify (~> 0.9, >= 0.9.7)
@@ -203,8 +202,8 @@ GEM
     method_source (1.0.0)
     mini_mime (1.1.0)
     mini_portile2 (2.5.1)
-    mini_racer (0.4.0)
-      libv8-node (~> 15.14.0.0)
+    mini_racer (0.3.1)
+      libv8 (~> 8.4.255)
     minitest (5.14.4)
     msgpack (1.4.2)
     multi_json (1.15.0)
@@ -411,7 +410,7 @@ DEPENDENCIES
   jquery-rails
   koala (~> 2.4)
   listen (>= 3.0.5, < 3.2)
-  mini_racer
+  mini_racer (~> 0.3.1)
   omniauth-facebook
   omniauth-google-oauth2
   omniauth-rails_csrf_protection