chore(vite): fail fast when the dev or preview port is taken (#5752)

This commit is contained in:
Stu Anderson
2026-11-28 10:15:42 -06:00
committed by GitHub
parent 794b179f13
commit e4011624ad

View File

@@ -118,6 +118,7 @@ export default defineConfig(({ mode }) => {
},
proxy,
port: httpsMode ? 8443 : 3000,
strictPort: true,
allowedHosts: ["localhost", "127.0.0.1", "romm.dev"],
...(httpsMode
? {
@@ -129,6 +130,8 @@ export default defineConfig(({ mode }) => {
: {}),
},
preview: {
port: 4173,
strictPort: true,
proxy,
},
};