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
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -11,6 +11,11 @@
|
|||
!docs/branding/**
|
||||
!crates
|
||||
!crates/**
|
||||
# Static assets are built by Nix (frontendStatic derivation in flake.nix).
|
||||
# Do not commit them; `nix build` produces them from frontend/src/.
|
||||
crates/archivr-server/static/
|
||||
crates/archivr-server/static/**
|
||||
|
||||
|
||||
!vendor
|
||||
!vendor/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue