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. Use when this capability is needed.

tomevault-io 97a6b19 2 files · 1.8 KB Updated

File contents

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

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/oaknational--oak-ai-lesson-assistant--local-development commit 97a6b19e22

Frequently asked questions

npx skillmds@latest add tomevault-io/local-development