mirror of
https://github.com/thegeneralist01/archivr
synced 2026-10-09 12:55:00 +02:00
build: build frontend in Nix, remove static from git tracking
Add frontendDeps (FOD) and frontendStatic derivations to flake.nix so
that nix build handles the Vite bundle automatically. The archivr_server
derivation now copies from ${frontendStatic} instead of
${./crates/archivr-server/static}.
crates/archivr-server/static/ is excluded from git tracking (.gitignore);
the aarch64-darwin node_modules hash is included. Other systems use a
placeholder hash — run `nix build 2>&1 | grep 'got:'` to obtain theirs.
Update AGENTS.md and docs/README.md to reflect the new workflow.
This commit is contained in:
parent
699eb7f62d
commit
4f3b2968b6
4 changed files with 66 additions and 5 deletions
|
|
@ -430,7 +430,7 @@ cargo run -p archivr-server -- ./archivr-server.toml
|
|||
# Frontend (from frontend/)
|
||||
bun install
|
||||
bun run dev # Vite dev server
|
||||
bun run build # → crates/archivr-server/static/
|
||||
bun run build # → crates/archivr-server/static/ (gitignored; nix build does this automatically)
|
||||
|
||||
# Nix
|
||||
nix develop # dev shell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue