feat(examples): configure separate default ports for React and HTML demos

- 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 <noreply@anthropic.com>
This commit is contained in:
Christian Pillsbury
2025-09-08 17:29:12 -07:00
committed by Christian Pillsbury
co-authored by Claude
parent a1de5ebae3
commit 370762f500
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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
},
});
+4
View File
@@ -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
},
});