Archived
updated default.nix shell for nextjs
This commit is contained in:
+8
-6
@@ -1,15 +1,17 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
let
|
||||
nodePackages = pkgs.nodePackages;
|
||||
pkgs = import <nixpkgs> {};
|
||||
in
|
||||
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
nodePackages.nodejs
|
||||
nodePackages.yarn
|
||||
pkgs.nodejs
|
||||
pkgs.yarn
|
||||
];
|
||||
|
||||
# Install Next.js via yarn in the shell
|
||||
shellHook = ''
|
||||
echo "Welcome to the bakery-template development environment!"
|
||||
if ! [ -d "node_modules" ]; then
|
||||
yarn add next react react-dom
|
||||
fi
|
||||
'';
|
||||
}
|
||||
+3
-3
@@ -12,10 +12,10 @@
|
||||
"@svgr/webpack": "^8.1.0",
|
||||
"framer-motion": "^11.11.11",
|
||||
"keen-slider": "^6.8.6",
|
||||
"next": "15.0.2",
|
||||
"react": "^18.2.0",
|
||||
"next": "^15.1.6",
|
||||
"react": "^19.0.0",
|
||||
"react-awesome-slider": "^4.1.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"sass": "^1.83.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user