Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,55 +56,55 @@ vercel --prod # deploy
## Environment variables per app

Set these in Vercel (Project → Settings → Environment Variables). Use your gateway
origin — the Hypery API is `https://api.hypery.ai` and the v1 base is
`https://api.hypery.ai/api/v1`. `REDIRECT_URI` is always `https://<project>.vercel.app/callback`.
origin — the Hypery API is `https://hypery.ai` and the v1 base is
`https://hypery.ai/api/v1`. `REDIRECT_URI` is always `https://<project>.vercel.app/callback`.

**auth-demo**
```
NEXT_PUBLIC_AUTH_URL=https://api.hypery.ai
NEXT_PUBLIC_AUTH_URL=https://hypery.ai
NEXT_PUBLIC_OAUTH_CLIENT_ID=app_…
NEXT_PUBLIC_REDIRECT_URI=https://hypery-auth-demo.vercel.app/callback
NEXT_PUBLIC_DEMO_SELLER_APP_ID=app_… # optional: enables the "buy" checkout demo
```

**fiber**
```
NEXT_PUBLIC_AUTH_URL=https://api.hypery.ai
NEXT_PUBLIC_AUTH_URL=https://hypery.ai
NEXT_PUBLIC_OAUTH_CLIENT_ID=app_…
NEXT_PUBLIC_REDIRECT_URI=https://hypery-fiber.vercel.app/callback
```

**justmakeit**
```
NEXT_PUBLIC_AI_GATEWAY_URL=https://api.hypery.ai
NEXT_PUBLIC_GATEWAY_HUB_URL=https://api.hypery.ai
NEXT_PUBLIC_AI_GATEWAY_URL=https://hypery.ai
NEXT_PUBLIC_GATEWAY_HUB_URL=https://hypery.ai
NEXT_PUBLIC_OAUTH_CLIENT_ID=app_…
NEXT_PUBLIC_REDIRECT_URI=https://hypery-justmakeit.vercel.app/callback
```

**chat** (backend-proxy OAuth — the secret is server-side, do NOT prefix it with `NEXT_PUBLIC_`)
```
NEXT_PUBLIC_API_URL=https://api.hypery.ai/api/v1
NEXT_PUBLIC_AUTH_URL=https://api.hypery.ai
NEXT_PUBLIC_API_URL=https://hypery.ai/api/v1
NEXT_PUBLIC_AUTH_URL=https://hypery.ai
NEXT_PUBLIC_OAUTH_CLIENT_ID=app_…
NEXT_PUBLIC_REDIRECT_URI=https://hypery-chat.vercel.app/callback
OAUTH_CLIENT_SECRET=… # mark as "Sensitive" in Vercel
```

**imagine** (backend-proxy OAuth)
```
NEXT_PUBLIC_API_URL=https://api.hypery.ai/api/v1
NEXT_PUBLIC_CORE_API_URL=https://api.hypery.ai
NEXT_PUBLIC_AUTH_URL=https://api.hypery.ai
NEXT_PUBLIC_API_URL=https://hypery.ai/api/v1
NEXT_PUBLIC_CORE_API_URL=https://hypery.ai
NEXT_PUBLIC_AUTH_URL=https://hypery.ai
NEXT_PUBLIC_OAUTH_CLIENT_ID=app_…
NEXT_PUBLIC_REDIRECT_URI=https://hypery-imagine.vercel.app/callback
OAUTH_CLIENT_SECRET=… # mark as "Sensitive" in Vercel
```

**vercel-demo**
```
NEXT_PUBLIC_API_URL=https://api.hypery.ai/api/v1
NEXT_PUBLIC_AUTH_URL=https://api.hypery.ai
NEXT_PUBLIC_API_URL=https://hypery.ai/api/v1
NEXT_PUBLIC_AUTH_URL=https://hypery.ai
NEXT_PUBLIC_OAUTH_CLIENT_ID=app_…
NEXT_PUBLIC_REDIRECT_URI=https://hypery-vercel-demo.vercel.app/callback
NEXT_PUBLIC_GATEWAY_API_KEY=ak_… # optional; NOTE: NEXT_PUBLIC_ ships it to the browser,
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy-vercel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# # optional:
# export AUTH_DEMO_SELLER_APP_ID=app_... # enables the checkout demo
# export VERCEL_DEMO_GATEWAY_API_KEY=ak_... # browser-exposed; use a throwaway key
# export HYPERY_GATEWAY=https://api.hypery.ai # gateway origin (default)
# export HYPERY_GATEWAY=https://hypery.ai # gateway origin (default)
#
# Usage: VERCEL_TOKEN=... AUTH_DEMO_CLIENT_ID=... ./scripts/deploy-vercel.sh
# DEPLOY=0 ... ./scripts/deploy-vercel.sh # create/configure only, don't deploy
Expand All @@ -34,7 +34,7 @@ set -euo pipefail
API="https://api.vercel.com"
REPO="${EXAMPLES_REPO:-hyperyai/hypery-examples}"
ORG="${REPO%%/*}"; REPONAME="${REPO##*/}"
GATEWAY="${HYPERY_GATEWAY:-https://api.hypery.ai}"
GATEWAY="${HYPERY_GATEWAY:-https://hypery.ai}"
BRANCH="${DEPLOY_BRANCH:-main}"
DEPLOY="${DEPLOY:-1}"
TID="${VERCEL_TEAM_ID:-}"
Expand Down
2 changes: 1 addition & 1 deletion vercel-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Update `.env.production`:
```bash
NEXT_PUBLIC_OAUTH_CLIENT_ID=your_production_client_id
NEXT_PUBLIC_REDIRECT_URI=https://your-app.com/callback
NEXT_PUBLIC_AUTH_URL=https://api.hypery.ai
NEXT_PUBLIC_AUTH_URL=https://hypery.ai
```

### Register Production App
Expand Down