Fix sign-in links and legacy JWT after Periscope rebrand.
/login 404ed from marketing CTAs; redirect to /sign-in and accept pinscope-local tokens plus dual-host CORS so login works on both hostnames. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -115,8 +115,8 @@ fi
|
||||
|
||||
log "Ensuring public URL in .env ($SITE)"
|
||||
upsert_env NEXT_PUBLIC_API_URL "$SITE" .env
|
||||
# JSON list — keep it a single line so docker compose / pydantic-settings parse it.
|
||||
upsert_env CORS_ORIGINS "[\"$SITE\"]" .env
|
||||
# Allow both Periscope and legacy Pinscope host during transition.
|
||||
upsert_env CORS_ORIGINS "[\"$SITE\",\"https://pinscope.michelebigi.it\"]" .env
|
||||
|
||||
KEY="$(read_env DEEPSEEK_API_KEY .env || true)"
|
||||
if [[ -z "$KEY" || "$KEY" == "sk-..." ]]; then
|
||||
|
||||
Reference in New Issue
Block a user