mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
chore(vite): fail fast when the dev or preview port is taken (#5752)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user