Skip to content

Commit

Permalink
move default back to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gtm-nayan committed Jun 27, 2022
1 parent f209ae5 commit c864f1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions packages/kit/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,7 @@ prog
// these should take precedence, but not print conflict warnings
if (host) vite_config.preview.host = host;
if (https) vite_config.preview.https = https;

if (port) {
vite_config.preview.port = port;
} else {
vite_config.preview.port ??= 3000;
}
if (port) vite_config.preview.port = port;

const preview_server = await vite.preview(vite_config);

Expand Down
1 change: 1 addition & 0 deletions packages/kit/src/vite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ function kit() {
}
},
preview: {
port: config.preview?.port ?? 3000,
strictPort: true
},
resolve: {
Expand Down

0 comments on commit c864f1d

Please sign in to comment.