From 2861c7ec0fb9528947373b727363990a8365334b Mon Sep 17 00:00:00 2001 From: Robbe Van Petegem Date: Mon, 11 Sep 2023 20:22:03 +0200 Subject: [PATCH] Make sure that build does not need ENV variables --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 85c10d7d..9ccee322 100644 --- a/flake.nix +++ b/flake.nix @@ -64,7 +64,7 @@ # We need to compile with the production flag, so vite_rails compiles to the right folder # We also need to provide rails with _some_ SECRET_KEY_BASE, so we just provide a dummy value - SECRET_KEY_BASE=abc RAILS_ENV=production ${gems}/bin/bundle exec rails assets:precompile + RAILS_ENV=production ${gems}/bin/bundle exec vite build rm node_modules '';