Skip to content

feat: add interactive document structure graph to dashboard #30

feat: add interactive document structure graph to dashboard

feat: add interactive document structure graph to dashboard #30

Workflow file for this run

name: Deploy Web to Cloudflare Pages
on:
push:
branches: [main]
paths:
- "apps/web/**"
- "packages/shared/**"
workflow_dispatch:
jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build shared package
run: pnpm --filter=@vectorless/shared build
- name: Build and Deploy with OpenNext
working-directory: apps/web
run: |
npx opennextjs-cloudflare build
echo "--- Build output ---"
ls -la .open-next/ 2>/dev/null || ls -la .worker/ 2>/dev/null || echo "Checking all dirs..."
find . -name "worker.js" -o -name "index.mjs" 2>/dev/null | head -5
echo "--- Deploying ---"
npx wrangler@latest deploy
env:
DATABASE_URL: ${{ secrets.DASHBOARD_DATABASE_URL }}
BETTER_AUTH_SECRET: ${{ secrets.BETTER_AUTH_SECRET }}
BETTER_AUTH_URL: https://vectorless.halleluyaholudele.workers.dev
NEXT_PUBLIC_APP_URL: https://vectorless.halleluyaholudele.workers.dev
VECTORLESS_API_URL: https://api.vectorless.store
NODE_ENV: production
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}