From 73cbebdf0382bbaac76d25d20451e3f35e256ae3 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Thu, 16 May 2024 00:33:16 +0600 Subject: [PATCH] Update nix file --- .idx/dev.nix | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.idx/dev.nix b/.idx/dev.nix index ef46ec5ce..7ea13d033 100644 --- a/.idx/dev.nix +++ b/.idx/dev.nix @@ -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"; + }; }; }; }; -} \ No newline at end of file +}