From 28cd7ada35f09cc15426cece03db805bf5020e34 Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Wed, 16 Sep 2026 16:21:26 +1000 Subject: [PATCH] fix(www): add local KB rewrite URL (#50452) ## What kind of change does this PR introduce? Bug fix for the local www development environment. ## What is the current behaviour? Running `pnpm dev:www` fails Next.js rewrite validation because `NEXT_PUBLIC_KB_URL` is missing from the tracked public environment defaults, producing an `undefined` destination for `/kb`. ## What is the new behaviour? The tracked public environment defines the local KB URL, matching `.env.local.example`, so the www rewrite configuration is valid in a fresh checkout. ## To test 1. Run `pnpm dev:www`. 2. Open http://localhost:3000. 3. Confirm www starts without the `Invalid rewrites found` error for `/kb`. ## Summary by CodeRabbit * **Configuration** * Added a public URL setting for accessing the knowledge base service in local development. --- apps/www/.env | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/www/.env b/apps/www/.env index cec21042802..5a4a6aaf747 100644 --- a/apps/www/.env +++ b/apps/www/.env @@ -10,3 +10,4 @@ NEXT_PUBLIC_STUDIO_URL="http://localhost:8082" NEXT_PUBLIC_REFERENCE_DOCS_URL="http://localhost:3010" NEXT_PUBLIC_LIBRARY_URL="http://localhost:3004" NEXT_PUBLIC_DESIGN_SYSTEM_URL="http://localhost:3003" +NEXT_PUBLIC_KB_URL="http://localhost:3008/kb"