From 370762f500d05d6041e86592e86db2b699446ed2 Mon Sep 17 00:00:00 2001 From: Christian Pillsbury Date: Mon, 8 Sep 2025 17:27:50 -0700 Subject: [PATCH] feat(examples): configure separate default ports for React and HTML demos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Set React demo to use port 5173 (Vite's default) - Set HTML demo to use port 5174 to avoid conflicts - Enable strictPort: false to allow automatic fallback to next available port - Allow simultaneous development of both React and HTML demos - Maintain existing development workflow while preventing port conflicts This enables developers to run `npm run dev:react` and `npm run dev:html` concurrently without manual port management. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- examples/html-demo/vite.config.mts | 4 ++++ examples/react-demo/vite.config.mts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/examples/html-demo/vite.config.mts b/examples/html-demo/vite.config.mts index a0c47386..c2f634a8 100644 --- a/examples/html-demo/vite.config.mts +++ b/examples/html-demo/vite.config.mts @@ -5,4 +5,8 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url)); export default defineConfig({ root: __dirname, + server: { + port: 5174, + strictPort: false, // Allow Vite to try other ports if 5174 is taken + }, }); diff --git a/examples/react-demo/vite.config.mts b/examples/react-demo/vite.config.mts index 6b2481ad..98e27d6c 100644 --- a/examples/react-demo/vite.config.mts +++ b/examples/react-demo/vite.config.mts @@ -3,4 +3,8 @@ import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], + server: { + port: 5173, + strictPort: false, // Allow Vite to try other ports if 5173 is taken + }, }); \ No newline at end of file