Skip to content

Commit

Permalink
Permit deployment on IDX out of box
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed Sep 11, 2024
1 parent a5043e3 commit 0b5eac4
Show file tree
Hide file tree
Showing 6 changed files with 14,613 additions and 2 deletions.
26 changes: 26 additions & 0 deletions nextjs-end/.idx/dev.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ pkgs }: {
channel = "stable-23.11";
packages = [
pkgs.nodejs_20
];
idx.workspace = {
# Runs when a workspace is first created with this `dev.nix` file
onStart = {
npm-install = "npm ci --no-audit --prefer-offline --no-progress --timing";
};
# To run something each time the workspace is (re)started, use the `onStart` hook
};

idx.extensions = [

];
idx.previews = {
enable = false;
previews = {
web = {
command = ["npm" "run" "dev" "--" "--port" "$PORT" "--hostname" "0.0.0.0"];
manager = "web";
};
};
};
}
Loading

0 comments on commit 0b5eac4

Please sign in to comment.