ModulesEntrypoints
Entrypoints Module Implementation
Nix module for generating per-app entrypoint shell scripts.
Nix module for generating per-app entrypoint shell scripts.
Each app defined in stackpanel.apps can have an entrypoint generated that:
- Auto-sources devshell in dev mode
- Loads secrets for the appropriate environment
- Sets up environment variablesIMPORTANT: Entrypoints ONLY inject environment variables. They do NOT run commands. The caller is responsible for running the actual command after sourcing the entrypoint.
Generated entrypoints are written to packages/scripts/entrypoints/<app>.sh via the stackpanel.files system.
Usage (source the entrypoint, then run your command):
source packages/scripts/entrypoints/web.sh --dev
bun run devOr in process-compose:
command: "source packages/scripts/entrypoints/web.sh --dev && bun run dev"