try static export
This commit is contained in:
parent
b1eb26e5f2
commit
dd2e26284d
@ -44,15 +44,8 @@
|
|||||||
src = ./.;
|
src = ./.;
|
||||||
npmDepsHash = "sha256-+GgP+cilcphMZxns/EM2TTRDuQi8RE1PkxsDG3gXZEQ=";
|
npmDepsHash = "sha256-+GgP+cilcphMZxns/EM2TTRDuQi8RE1PkxsDG3gXZEQ=";
|
||||||
postInstall = ''
|
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
|
rm -rf $out/lib
|
||||||
|
cp -r ./out/* $out/
|
||||||
makeWrapper ${pkgs.lib.getExe pkgs.nodejs} $out/bin/${pname} \
|
|
||||||
--add-flags $out/server.js \
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
output: "standalone",
|
output: "export",
|
||||||
images: { unoptimized: true }
|
images: { unoptimized: true }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user