# Deploy Runbook

# Deploy Runbook — alai.no

**Last updated:** 2026-04-15
**Status:** Production — VERIFIED

---

## Infrastructure

| Field | Value |
|-------|-------|
| **Live URL** | https://alai.no |
| **CDN** | Vercel (confirmed via response headers) |
| **Repo** | `~/ALAI/web` |
| **Hosting type** | Static (plain HTML/CSS/JS, no build step) |
| **Output dir** | `public/` (served directly by Vercel) |
| **Vercel project** | alai (linked via `~/ALAI/web/.vercel/`) |

> ⚠️ `~/projects/ALAI/landing` is a stale Next.js experiment with Firebase config — **NOT live, NOT deployed, ignore it.**

---

## Deploy Steps

```bash
cd ~/ALAI/web
git pull origin master
# make changes to public/
git add public/
git commit -m "feat: description"
vercel --prod
```

## Verify

```bash
curl -sI https://alai.no | grep -i "server\|vercel"
# Expected: server: Vercel
```

## Rollback

```bash
# List deployments
vercel ls

# Rollback to previous deployment URL
vercel rollback [deployment-url]
```

## Known Issues

- **2026-04-15**: `/ucenje/` subpage links used directory-style paths (`/ucenje/mladi/`) instead of `.html` files. Fixed in `public/ucenje/index.html` — deploy pending.
- Vercel token occasionally needs re-auth: `vercel login`

## What NOT to use

- ❌ Firebase (`~/projects/ALAI/landing`) — stale, not connected to alai.no
- ❌ `~/projects/ALAI/landing` — Next.js experiment, dead project