Skip to content

Phase 3: Set up Workers, D1, and Vectorize on SCCN account #324

Closed

Description

@neuromechanist

Parent Epic

#314

Goal

Create all required Cloudflare infrastructure on the SCCN account to mirror the current personal account setup.

Current Infrastructure (Personal Account)

  • Worker: nemar-api
  • D1: nemar-db (id: 0a168b1a-1923-4436-9509-6e4a9b5bb7ae)
  • D1 dev: nemar-db-dev
  • Vectorize: nemar-dataset-index (384 dims, cosine, bge-small-en-v1.5)
  • Workers AI binding
  • Scheduled cron: 0 3 * * * (daily cleanup)

Tasks

  • Create D1 database nemar-db on SCCN account
  • Create D1 dev database nemar-db-dev on SCCN account
  • Run all D1 migrations (0001-0014+) on new databases
  • Create Vectorize index nemar-dataset-index (384 dims, cosine)
  • Verify Workers AI is available on SCCN account plan
  • Create new wrangler.toml (or branch config) with SCCN database IDs and zone info
  • Document all new resource IDs

Notes

  • Use npx cfman wrangler --account sccn for all operations
  • Need to determine the SCCN account's zone ID for nemar.org
  • Vectorize and AI bindings need to be in both top-level and [env.dev] sections

Activity

  1. added
    infrastructure
    on Mar 21, 2026
  2. neuromechanist commented on Mar 21, 2026

    @neuromechanist
    ContributorAuthor

    Status: Done

    All infrastructure created on SCCN account (da8d7a2a8680dab01592bbbc6f67f12c):

    Resource Name ID
    D1 (prod) nemar-db 009b1a44-a385-4ecf-812d-ec8341587cb5
    D1 (dev) nemar-db-dev 017d8f4e-a591-4a3d-944b-01b5ffe5101d
    Vectorize (prod) nemar-dataset-index 384 dims, cosine
    Vectorize (dev) nemar-dataset-index-dev 384 dims, cosine
    Workers AI AI binding Available
    Worker script nemar-api Uploaded (pending workers.dev subdomain for publish)

    Completed:

    • Create D1 prod database
    • Create D1 dev database
    • Run all 18 migrations on prod D1
    • Run all 18 migrations on dev D1
    • Create Vectorize prod index (384 dims, cosine)
    • Create Vectorize dev index (384 dims, cosine)
    • Create wrangler-sccn.toml config with all SCCN resource IDs
    • Upload worker script to SCCN account

    Pending:

    • Register workers.dev subdomain on SCCN account (visit Workers & Pages dashboard once)
    • Redeploy worker after subdomain registered

    Config: backend/wrangler-sccn.toml on branch 314-epic-migrate-nemar-infrastructure-from-personal-to-sccn-cloudflare-account

  3. neuromechanist commented on Apr 18, 2026

    @neuromechanist
    ContributorAuthor

    Done. SCCN Worker (nemar-api), D1 (nemar-db / nemar-db-dev), Vectorize (nemar-dataset-index / -dev) all provisioned via backend/wrangler-sccn.toml. Workers live at nemar-api.sccn-org.workers.dev and nemar-api-dev.sccn-org.workers.dev (/health green).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrastructure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions