diff --git a/apps/kb/AGENTS.md b/apps/kb/AGENTS.md index c5ff42975b0..d2093805665 100644 --- a/apps/kb/AGENTS.md +++ b/apps/kb/AGENTS.md @@ -1,12 +1,26 @@ ## Development -When starting the dev server, use background mode: +When starting the dev server, run: ``` -astro dev --background +# From the root directory of the project +pnpm dev:kb + +# From the apps/kb directory +pnpm dev ``` -Manage the background server with `astro dev stop`, `astro dev status`, and `astro dev logs`. +## Build + +To run a full production build, run: + +``` +# From the root directory of the project +pnpm build:kb + +# From the apps/kb directory +pnpm build +``` ## Documentation diff --git a/package.json b/package.json index 0ca9b3f9aa1..aa441729e00 100644 --- a/package.json +++ b/package.json @@ -13,11 +13,13 @@ "build:studio:docker:tanstack": "docker build . -f apps/studio/Dockerfile --target production -t supabase-studio:local-tanstack --build-arg NEXT_PUBLIC_STUDIO_AUTH_MODE=supabase --build-arg STUDIO_FRAMEWORK=tanstack --no-cache", "build:design-system": "turbo run build --filter=design-system", "build:docs": "turbo run build --filter=docs", + "build:kb": "turbo run build --filter=kb", "clean": "turbo run clean --parallel && rimraf -G .turbo/cache && pnpm purge", "dev": "turbo run dev --parallel", "dev:studio": "turbo run dev --filter=studio --parallel", "dev:studio-local": "pnpm setup:cli && NODE_ENV=test MODE=test pnpm --prefix ./apps/studio dev", "dev:docs": "turbo run dev --filter=docs --parallel", + "dev:kb": "turbo run dev --filter=kb --parallel", "dev:www": "turbo run dev --filter=www --parallel", "dev:design-system": "turbo run dev --filter=design-system --parallel", "lint": "turbo run lint",