Next.js frontend for PromptGrade. This app is configured as a static export and is deployed via GitHub Pages.
Copy .env.example to .env.development:
cp .env.example .env.development
Available variables:
NEXT_PUBLIC_API_URL: Backend base URL used for API calls (default local backend is http://localhost:8080)NEXT_PUBLIC_GA_ID (optional): Google Analytics IDnpm install
npm run dev
http://localhost:3000
Frontend expects the backend at NEXT_PUBLIC_API_URL (for local, usually http://localhost:8080).
If your backend runs on a different port/host, update .env.development:
NEXT_PUBLIC_API_URL=http://localhost:8080
Then restart npm run dev.
Build output is exported to out/:
npm run build
Workflow file: .github/workflows/deploy-pages.yml
Current behavior:
main/masternpm cinpm run buildout/ and deploys to GitHub PagesGitHub repository variables expected by the workflow:
NEXT_PUBLIC_API_URLNEXT_PUBLIC_GA_ID (optional)PAGES_DOMAIN (optional custom domain)npm run dev
npm run build
npm run start
npm run lint