mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
The app service was passing the proxy URL (daemon.<branch>.<slug>.localhost:6767) which routes through the main daemon. Switch to the worktree daemon's own ephemeral port so the worktree app talks to the worktree daemon without a main-daemon hop. Refs #637.
23 lines
605 B
JSON
23 lines
605 B
JSON
{
|
|
"worktree": {
|
|
"setup": [
|
|
"npm ci",
|
|
"npm run build:daemon",
|
|
"cp \"$PASEO_SOURCE_CHECKOUT_PATH/packages/server/.env\" \"$PASEO_WORKTREE_PATH/packages/server/.env\""
|
|
]
|
|
},
|
|
"scripts": {
|
|
"daemon": {
|
|
"type": "service",
|
|
"command": "PASEO_LISTEN=0.0.0.0:$PASEO_PORT ./scripts/dev-daemon.sh"
|
|
},
|
|
"app": {
|
|
"type": "service",
|
|
"command": "cd packages/app && BROWSER=none EXPO_PUBLIC_LOCAL_DAEMON=\"localhost:${PASEO_SERVICE_DAEMON_PORT}\" npx expo start --port $PASEO_PORT"
|
|
},
|
|
"typecheck": {
|
|
"command": "npm run typecheck"
|
|
}
|
|
}
|
|
}
|