Admin console

Operational controls for imports, articles, and snapshots.

These pages stay tied to the same Railway PostgreSQL database as the public site so importing, reporting, and editorial work all share one source of truth.

Database ready

Latest import finished Jul 8, 2026, 6:08 AM after finding 11,657 records.

DATABASE_URL

Configured

Expected to come from the Railway Postgres reference variable

NEXT_PUBLIC_SITE_URL

Configured

Used for metadata, canonical URLs, and share previews

USAJOBS API

Configured

Authorization key and registered email are both required

ADMIN_IMPORT_TOKEN

Configured

Reserved for protecting future admin import actions

Runtime

Railway

Dockerfile deployment with health checks at /api/health

Framework

Next.js 16

App Router + TypeScript + Tailwind CSS

ORM

Prisma

Production storage runs through Railway PostgreSQL

Deployment assumptions

Current production configuration

  • GitHub is expected to remain the deployment source for the Railway service.
  • Pushing to the `main` branch should trigger Railway autodeploys for the connected private repository.
  • `npm run prisma:deploy` is configured as the Railway pre-deploy command.
  • The service should only become healthy when `/api/health` returns HTTP 200.

Project scripts

Operational commands

  • npm run dev
  • npm run build
  • npm run start
  • npm run lint
  • npm run prisma:generate
  • npm run prisma:migrate
  • npm run prisma:deploy