diff --git a/.tangled/workflows/deploy.yaml b/.tangled/workflows/deploy.yaml index 5bfe7dc..881a248 100644 --- a/.tangled/workflows/deploy.yaml +++ b/.tangled/workflows/deploy.yaml @@ -8,12 +8,28 @@ image: nixos dependencies: - bun - wrangler + - stdenv.cc.cc + - zlib + - openssl + - icu + - libuv + +environment: + # Instruct the kernel/binary to use Tangled's NixOS nix-ld path + NIX_LD: "/run/current-system/sw/share/nix-ld/lib/ld.so" + # Tell the dynamic linker where to load your injected dependencies from + NIX_LD_LIBRARY_PATH: "/run/current-system/sw/lib" steps: - name: build command: bun install - name: build - command: bun run build + command: | + # Explicitly export paths right before execution to enforce subshell compliance + export NIX_LD="/run/current-system/sw/share/nix-ld/lib/ld.so" + export NIX_LD_LIBRARY_PATH="/run/current-system/sw/lib" + + bun run build environment: NODE_ENV: production - name: deploy