- If you are change the vite application port please follow the procedure.
"scripts": { "dev": "vite --port 3006", "build": "vite build", "preview": "vite preview" }
"scripts": { "dev": "vite --port 3006", "build": "vite build", "preview": "vite preview" }
Try add your port into vite.config.ts:
export default defineConfig({
// ...some configs
server: {
port: 3006,
},
});