try static export
This commit is contained in:
parent
b1eb26e5f2
commit
dd2e26284d
@ -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/
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
@ -1,6 +1,6 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: "standalone",
|
||||
output: "export",
|
||||
images: { unoptimized: true }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user