local-development

Development server and build commands for Oak AI project including running dev server on port 2525, production and development builds, and running scripts with environment variables. Use when starting local development, building the project, or running scripts.

$ Instalar

git clone https://github.com/oaknational/oak-ai-lesson-assistant /tmp/oak-ai-lesson-assistant && cp -r /tmp/oak-ai-lesson-assistant/.claude/skills/local-development ~/.claude/skills/oak-ai-lesson-assistant

// tip: Run this command in your terminal to install the skill


name: local-development description: Development server and build commands for Oak AI project including running dev server on port 2525, production and development builds, and running scripts with environment variables. Use when starting local development, building the project, or running scripts.

Local Development

Development Server

Start the Next.js development server:

pnpm dev
  • Runs on port 2525
  • Hot reload enabled

Build Commands

Production Build

pnpm build

Development Build

pnpm build:dev

Running Scripts with Environment Variables

Use pnpm with-env to run scripts with environment variables loaded:

pnpm with-env tsx src/script.ts

Monorepo Structure

This is a Turborepo monorepo using pnpm workspaces. Target specific packages with --filter:

pnpm --filter @oakai/nextjs dev
pnpm --filter @oakai/aila build