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";
packages = [
pkgs.nodejs_20
];
idx.extensions = [];
idx.previews = {
env = {};
idx = {
extensions = [];
workspace = {
onCreate = {
npm-install = "npm install";
};
};
previews = {
web = {
command = [
"npm"
"run"
"dev"
"--"
"--port"
"$PORT"
"--host"
"0.0.0.0"
];
manager = "web";
enable = true;
previews = {
web = {
command = ["npm" "run" "dev" "--" "--port" "$PORT" "--host" "0.0.0.0"];
manager = "web";
};
};
};
};
}
}