mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +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>
13 lines
299 B
TypeScript
13 lines
299 B
TypeScript
import { defineConfig } from 'vite';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
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
|
|
},
|
|
});
|