diff --git a/flake.nix b/flake.nix index 11ae62d..38d88d0 100644 --- a/flake.nix +++ b/flake.nix @@ -44,15 +44,8 @@ src = ./.; npmDepsHash = "sha256-+GgP+cilcphMZxns/EM2TTRDuQi8RE1PkxsDG3gXZEQ="; postInstall = '' - mkdir -p $out/bin/ - cp -r ./.next/standalone/* $out/ - cp -r ./.next/standalone/.* $out/ - cp -r ./.next/static $out/.next/ - cp -r ./public $out/ rm -rf $out/lib - - makeWrapper ${pkgs.lib.getExe pkgs.nodejs} $out/bin/${pname} \ - --add-flags $out/server.js \ + cp -r ./out/* $out/ ''; }; }; diff --git a/next.config.js b/next.config.js index 978a709..8a4dfe1 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - output: "standalone", + output: "export", images: { unoptimized: true } }