-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from MinaFoundation/feature/consideration-phase
Feature/consideration phase
- Loading branch information
Showing
49 changed files
with
3,443 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"next/typescript" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"react-hooks/exhaustive-deps": "warn", | ||
"react/no-unescaped-entities": "warn" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
description = "Next.js development environment with Podman"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
# Systems support | ||
systems.url = "github:nix-systems/default"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, systems, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
in | ||
{ | ||
devShells.default = pkgs.mkShell { | ||
buildInputs = with pkgs; [ | ||
# Core dependencies | ||
nodejs_20 | ||
nodePackages.typescript | ||
nodePackages.tsx | ||
podman | ||
podman-compose | ||
direnv | ||
git | ||
]; | ||
|
||
shellHook = '' | ||
echo "🚀 Next.js development environment activated" | ||
# Ensure podman socket is running | ||
if ! podman system service --time=0 >/dev/null 2>&1; then | ||
echo "Starting podman socket..." | ||
podman system service --time=0 >/dev/null 2>&1 & | ||
fi | ||
# Environment variables for podman | ||
export DOCKER_HOST="unix://$XDG_RUNTIME_DIR/podman/podman.sock" | ||
export DOCKER_CONTEXT="default" | ||
# Load .env file if it exists | ||
if [ -f .env ]; then | ||
set -a | ||
source .env | ||
set +a | ||
fi | ||
''; | ||
|
||
# Add environment variables | ||
env = { | ||
NODE_ENV = "production"; | ||
}; | ||
}; | ||
}); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.