-
Notifications
You must be signed in to change notification settings - Fork 2
/
.envrc
86 lines (69 loc) · 3.47 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env bash
# Team Shared direnv.
# See: https://github.com/direnv/direnv
# Enforces `set -euo pipefail` despite user local config.
strict_env
# forces "at least"
direnv_version 2.32.1
# User local additions.
source_env_if_exists .envrc.local
# Load mise or asdf
if has rtx && has use_rtx; then
use rtx
elif has mise && has use_mise; then
use mise
elif has asdf && has use_asdf; then
log_status "mise (previously known as 'rtx') not found. Falling back to asdf."
use asdf
else
log_error "Neither rtx (mise) nor asdf are installed or integrated with direnv."
log_error "For asdf: https://asdf-vm.com/"
log_error "For mise (previously known as 'rtx'): https://github.com/jdx/mise"
fi
layout node
# Docker
export COMPOSE_DOCKER_CLI_BUILD=1
export DOCKER_BUILDKIT=1
# Required Env Vars for this project.
# You may add these env vars to `.env` file and vite will load it automatically
# See: https://vitejs.dev/guide/env-and-mode.html
# E.g. Vite will load `.env.staging` when run in staging mode
export VITE_APP_TITLE="${VITE_APP_TITLE:-Crisiscleanup}"
export VITE_APP_API_BASE_URL="${VITE_APP_API_BASE_URL:-}"
export VITE_APP_STAGE="${VITE_APP_STAGE:-}"
export VITE_APP_PORTAL_KEY="${VITE_APP_PORTAL_KEY:-}"
export VITE_APP_WHAT_3_WORDS_API_KEY="${VITE_APP_WHAT_3_WORDS_API_KEY:-}"
export VITE_APP_GOOGLE_MAPS_API_KEY="${VITE_APP_GOOGLE_MAPS_API_KEY:-}"
export VITE_APP_PITNEYBOWES_API_KEY="${VITE_APP_PITNEYBOWES_API_KEY:-}"
export VITE_APP_PITNEYBOWES_BASIC_AUTH_TOKEN="${VITE_APP_PITNEYBOWES_BASIC_AUTH_TOKEN:-}"
export VITE_APP_CRISISCLEANUP_WEB_CLIENT_ID="${VITE_APP_CRISISCLEANUP_WEB_CLIENT_ID:-}"
# Optional Env Vars
export VITE_APP_BASE_URL="${VITE_APP_BASE_URL:-https://app.dev.crisiscleanup.io}"
# ## CCP
export VITE_APP_CCP_URL="${VITE_APP_CCP_URL:-}"
export VITE_APP_WS_URL="${VITE_APP_WS_URL:-}"
export VITE_APP_AWS_CCP_REGION="${VITE_APP_AWS_CCP_REGION:-}"
export VITE_APP_CCP_PRINCIPAL="${VITE_APP_CCP_PRINCIPAL:-}"
export VITE_APP_CCP_ROLE="${VITE_APP_CCP_ROLE:-}"
export VITE_APP_CCP_INSTANCE="${VITE_APP_CCP_INSTANCE:-}"
# ## Required for https://github.com/webfansplz/vite-plugin-vue-inspector#--configuration-ide--editor
# ## Change in .envrc.local to editor of your choice
export VUE_EDITOR="${VUE_EDITOR:-webstorm}"
export LAUNCH_EDITOR=$VUE_EDITOR
# ## For E2E Tests
export TEST_APP_EMAIL_DEV="${TEST_APP_EMAIL_DEV:-demo@crisiscleanup.org}"
export TEST_APP_PASSWORD_DEV="${TEST_APP_PASSWORD_DEV:-}"
export TEST_APP_ADMIN_EMAIL_DEV="${TEST_APP_ADMIN_EMAIL_DEV:-admindemo@crisiscleanup.org}"
export TEST_APP_ADMIN_PASSWORD_DEV="${TEST_APP_ADMIN_PASSWORD_DEV:-}"
export TEST_APP_EMAIL_PROD="${TEST_APP_EMAIL_PROD:-}"
export TEST_APP_PASSWORD_PROD="${TEST_APP_PASSWORD_PROD:-}"
export TEST_APP_ADMIN_EMAIL_PROD="${TEST_APP_ADMIN_EMAIL_PROD:-}"
export TEST_APP_ADMIN_PASSWORD_PROD="${TEST_APP_ADMIN_PASSWORD_PROD:-}"
export TEST_APP_EMAIL_STAGING="${TEST_APP_EMAIL_STAGING:-$TEST_APP_EMAIL_PROD}"
export TEST_APP_PASSWORD_STAGING="${TEST_APP_PASSWORD_STAGING:-$TEST_APP_PASSWORD_PROD}"
export TEST_APP_ADMIN_EMAIL_STAGING="${TEST_APP_ADMIN_EMAIL_STAGING:-$TEST_APP_ADMIN_EMAIL_PROD}"
export TEST_APP_ADMIN_PASSWORD_STAGING="${TEST_APP_ADMIN_PASSWORD_STAGING:-$TEST_APP_ADMIN_PASSWORD_PROD}"
export TEST_APP_EMAIL="${TEST_APP_EMAIL:-$TEST_APP_EMAIL_DEV}"
export TEST_APP_PASSWORD="${TEST_APP_PASSWORD:-$TEST_APP_PASSWORD_DEV}"
export TEST_APP_ADMIN_EMAIL="${TEST_APP_ADMIN_EMAIL:-$TEST_APP_ADMIN_EMAIL_DEV}"
export TEST_APP_ADMIN_PASSWORD="${TEST_APP_ADMIN_PASSWORD:-$TEST_APP_ADMIN_PASSWORD_DEV}"