Skip to content

Commit

Permalink
append to config
Browse files Browse the repository at this point in the history
  • Loading branch information
FossPrime authored Apr 30, 2023
1 parent 0b4d7d1 commit 53f42b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ echo Node version: "$(node --version)"
EOF
fi

# Append origin for OAuth. Alternatively, set it as an env var
CONFIG_FILE="$FEATHERS_DIR/config/default.json"
if ! grep -q "$FEATHERS_ORIGIN" "$CONFIG_FILE"; then
sed -i "/\\"origins\\"/a \ \\"$FEATHERS_DIR\\","
fi

INDEX_TS="$FEATHERS_DIR/src/index.ts"
if ! grep -q "console.time" "$INDEX_TS"; then
sed -i "/Feathers app listening on /a \\
Expand Down

0 comments on commit 53f42b2

Please sign in to comment.