# LexAI website Marketing site for the LexAI monorepo: Home, Docs, Contribute, Community. ## Develop ```bash # from repo root npm run website:install npm run website:dev ``` Or inside this package: ```bash npm install npm run dev ``` ## Build ```bash npm run website:build # → packages/website/dist/ ``` Preview production build: `npm run website:preview`. Uses HashRouter so the site works on static hosts without server-side rewrite rules. ## Deploy on Coolify This package is a **static** Vite build (`dist/`). No LexAI API keys or env vars. 1. In Coolify: **+ New** → **Resource** → **Private Repository (with deploy key)** (Gitea). 2. Repo SSH URL, for example `git@git.juankibin.space:kibin/LexAI.git`. If Gitea SSH is not on port 22, use `ssh://git@git.juankibin.space:PORT/kibin/LexAI.git` (Coolify sometimes needs `ssh:///` with three slashes). 3. Add Coolify’s public deploy key to the Gitea repo: **Settings → Deploy / Access Keys** (read-only). 4. Branch: `dev` or `main`. 5. **Build Pack:** Nixpacks. 6. **Base Directory:** `/packages/website` — required. Root `npm run build` builds Chrome, not this site. 7. Enable **Is it a static site?** 8. **Publish Directory:** `/dist` 9. **Install command** (if the build says `vite: not found`): `npm ci` (do not omit devDependencies — Vite lives there). 10. Optional env: `NIXPACKS_NODE_VERSION=22` 11. Optional **Watch Paths:** `packages/website` so Chrome/VS Code/CLI commits do not redeploy. 12. Set the domain, **Deploy**, then open `https://your-domain/#/docs`. Auto-deploy: Coolify resource → **Webhooks** → copy the URL + secret into Gitea **Settings → Webhooks** (push events). Do not add `LEXAI_API_KEY` or any provider key to this Coolify app.