mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 05:37:21 +00:00
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:
committed by
Christian Pillsbury
co-authored by
Claude
parent
a1de5ebae3
commit
370762f500
@@ -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
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user