-
Notifications
You must be signed in to change notification settings - Fork 11
/
.envrc
43 lines (35 loc) · 1.62 KB
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
strict_env
if ! has nix; then
log_error 'Nix must be installed'
exit 1
fi
export NIXPKGS_ALLOW_BROKEN=1
# Asking git to rebase before pull.
# This helps avoiding nasty merge commits between local and remote branches,
# like "Merge branch 'main' of <remote>".
# The slight inconvenience is that git won't pull into a dirty workspace,
# asking to stash or commit the changes before pulling.
if [ "$(git config --get pull.rebase)" != "true" ]; then
git config pull.rebase true
fi
use nix --max-jobs auto
watch_file shell.nix build/nix/**/*.nix
# Redefining the ports in development
# to allow running release builds and dev builds at the same time.
# These values are passed to mintterd via flags when Electron spawns the mintterd process.
export VITE_DESKTOP_P2P_PORT="56000"
export VITE_DESKTOP_HTTP_PORT="56001"
export VITE_DESKTOP_GRPC_PORT="56002"
export VITE_DESKTOP_APPDATA="Mintter.dev"
export VITE_DESKTOP_HOSTNAME="http://localhost"
export VITE_ELECTRON_HTTP_PORT="56003"
export VITE_VERSION="0.0.100"
export GRPC_HOST="http://localhost:55002"
export NEXT_PUBLIC_LN_HOST="https://ln.testnet.mintter.com"
export NEXT_TELEMETRY_DISABLED="1"
# Needed for the Go extension in VS Code to find the right toolchain.
export GOROOT="$(go env GOROOT)"
# Sentry
export VITE_DESKTOP_SENTRY_DSN="https://8d3089ffb71045dc911bc66efbd3463a@o4504088793841664.ingest.sentry.io/4505527460429824"
export SITE_SENTRY_DSN="https://47c66bd7a6d64db68a59c03f2337e475@o4504088793841664.ingest.sentry.io/4505527493328896"
# NODE_ENV=test VITE_DESKTOP_P2P_PORT=5800 VITE_DESKTOP_HTTP_PORT=58001 VITE_DESKTOP_GRPC_PORT=58002 VITE_DESKTOP_APPDATA=appData.test.local