-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/adding-pdf-endpoint-to-api
- Loading branch information
Showing
28 changed files
with
232 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,24 @@ | ||
#!/bin/bash | ||
declare -A TIME_KEEP | ||
# t <target> - get elapsed time in milliseconds since first invocation (with nanosecond precision) | ||
t() { | ||
if [[ -v TIME_KEEP[$1] ]]; then | ||
D="$(date +%N)" | ||
echo "$(((${D##0} - ${TIME_KEEP[$1]##0}) / 1000000))" | ||
else | ||
TIME_KEEP[$1]=$(date +%N) | ||
fi | ||
} | ||
set -euo pipefail | ||
t root | ||
|
||
source_env .env.secret | ||
|
||
# global | ||
|
||
export NODE_OPTIONS="--max-old-space-size=8192" | ||
|
||
# MacOS specific | ||
|
||
export REDIS_CLUSTER_IP=0.0.0.0 | ||
|
||
# Developer custom direnv config | ||
for envrc in .envrc.* $(if [[ "${IS_DEVCONTAINER:-}" == true ]]; then echo .devcontainer/.envrc.private; fi); do | ||
t "${envrc}" | ||
source_env_if_exists "$envrc" | ||
T_TOTAL=$(t "${envrc}") | ||
if ((T_TOTAL > 100)); then | ||
echo -e "\033[93mSetting '$envrc' took ${T_TOTAL}ms\033[0m" | ||
fi | ||
done | ||
|
||
echo "Loading .envrc took $(t root)ms" | ||
# developer custom direnv config | ||
|
||
source_env_if_exists .envrc.private | ||
if [[ "${IS_DEVCONTAINER:-}" == true ]]; then | ||
source_env_if_exists .devcontainer/.envrc.private | ||
fi | ||
|
||
# Podman compatibility | ||
# NOTE: Exits direnv if user is using docker. | ||
source_env_if_exists .envrc.podman | ||
|
||
source_env_if_exists .envrc.kube |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.