forked from Tadrisino/MathApp_frontend
parents screen: tell the child and the parent apart
A linked child (demo user Ali) was told "you are linked to Ali" and the screen asked for the parent-only weekly report, which 404s. GET /family/link does not say which side the caller is on, so the role now comes from the weekly report: it answers only for the parent. The child sees a line saying their parent follows their progress and no invite/accept forms. Found on the live site with the demo accounts. deploy.sh now prints the full API URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,6 +45,6 @@ step "جابهجایی"
|
||||
rm -rf dist.prev
|
||||
[ -d dist ] && mv dist dist.prev
|
||||
mv dist.next dist
|
||||
API="$(grep -o 'https\?://[a-zA-Z0-9.-]*/api' dist/assets/*.js | head -1 | cut -d: -f2-)"
|
||||
API="$(grep -oh 'https\?://[a-zA-Z0-9.-]*/api' dist/assets/*.js | head -1)"
|
||||
printf ' منتشر شد. آدرسِ API در build: %s\n' "${API:-(همدامنه /api یا config.js)}"
|
||||
printf ' کشِ آروان را برای index.html و config.js پاک کنید اگر تغییری دیده نشد.\n'
|
||||
|
||||
Reference in New Issue
Block a user