@@ -8,7 +8,7 @@ npm run dev
8
8
compile = """ # Runs before debug too. Lacks custom env vars.
9
9
SECONDS=0
10
10
FEATHERS_DIR="feathers-chat-ts"
11
- FEATHERS_ORIGIN="https://$REPL_SLUG.$ REPL_OWNER.repl.co"
11
+ FEATHERS_ORIGIN="https://${ REPL_SLUG,,}.${ REPL_OWNER,,} .repl.co"
12
12
clear
13
13
echo [compile]
14
14
57
57
INDEX_TS="$FEATHERS_DIR/src/index.ts"
58
58
if ! grep -q "console.time" "$INDEX_TS"; then
59
59
sed -i "/Feathers app listening on /a \\
60
- \\ logger.info(\\`Remote: \\${process.env.FEATHERS_ORIGIN}\\`)\\n\\
60
+ \\ logger.info(\\`Remote: \\${process.env.FEATHERS_ORIGIN?.toLowerCase() }\\`)\\n\\
61
61
console.timeEnd('App startup time')" "$INDEX_TS"
62
62
63
63
sed -i "1i console.time('App startup time')" "$INDEX_TS"
@@ -93,7 +93,7 @@ PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_S
93
93
EDITOR = "replit-git-editor"
94
94
npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global"
95
95
HOSTNAME = "0.0.0.0"
96
- FEATHERS_ORIGIN = "https://$REPL_SLUG.$ REPL_OWNER.repl.co"
96
+ FEATHERS_ORIGIN = "https://${ REPL_SLUG}.${ REPL_OWNER} .repl.co"
97
97
NODE_OPTIONS = "--max_old_space_size=384"
98
98
99
99
# Enables Secrets and Auth, without the Replit packager
@@ -153,5 +153,4 @@ support = true
153
153
154
154
[debugger.interactive.launchMessage.arguments.env]
155
155
PORT = 9000
156
- FEATHERS_ORIGIN = "https://$REPL_SLUG.$REPL_OWNER.repl.co:9000"
157
156
0 commit comments