diff --git a/flake.nix b/flake.nix index e0c4889..e5f7429 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ name = "rachel-blog-vue"; src = ./.; npmBuildScript = "build-only"; - npmDepsHash = "sha256-rlxTMuYSPMuSwP0zhqc3pEgG0AcuUGS8lofFjR1d9L4="; + npmDepsHash = "sha256-QYmO99RkdhAN+vNOkBqeXYlfyHGyHfRKVVMIWYfZO1A="; installPhase = '' mv ./dist $out ''; diff --git a/package.json b/package.json index a732055..cd5cb97 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "dev": "vite", "build": "run-p type-check \"build-only {@}\" --", "preview": "vite preview", - "build-only": "vite-ssg build", + "build-only": "export NODE_ENV=production && vite-ssg build", "type-check": "vue-tsc --build --force" }, "dependencies": {