Update nix file

This commit is contained in:
Ariful Alam 2024-05-16 00:33:16 +06:00
parent 02de34d3ae
commit 73cbebdf03

View File

@ -1,24 +1,24 @@
{pkgs}: { { pkgs, ... }: {
channel = "stable-23.11"; channel = "stable-23.11";
packages = [ packages = [
pkgs.nodejs_20 pkgs.nodejs_20
]; ];
idx.extensions = []; env = {};
idx.previews = { idx = {
extensions = [];
workspace = {
onCreate = {
npm-install = "npm install";
};
};
previews = { previews = {
web = { enable = true;
command = [ previews = {
"npm" web = {
"run" command = ["npm" "run" "dev" "--" "--port" "$PORT" "--host" "0.0.0.0"];
"dev" manager = "web";
"--" };
"--port"
"$PORT"
"--host"
"0.0.0.0"
];
manager = "web";
}; };
}; };
}; };
} }