mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 21:57:29 +00:00
- 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>
10 lines
241 B
TypeScript
10 lines
241 B
TypeScript
import { defineConfig } from 'vite';
|
|
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
|
|
},
|
|
}); |