try static export

This commit is contained in:
Ivan Kirilov Dimitrov 2024-07-24 20:38:13 +02:00
parent b1eb26e5f2
commit dd2e26284d
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
2 changed files with 2 additions and 9 deletions

View File

@ -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/
'';
};
};

View File

@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
output: "export",
images: { unoptimized: true }
}