Skip to content

Commit

Permalink
fix(vite-dev-server): Use viteConfig.server.port if defined (#15893)
Browse files Browse the repository at this point in the history
Co-authored-by: Barthélémy Ledoux <[email protected]>
  • Loading branch information
michaelhays and Barthélémy Ledoux authored Apr 9, 2021
1 parent e8dbffe commit d0dcf22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion npm/vite-dev-server/src/startServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const resolveServerConfig = async ({ viteConfig, options }: StartDevServer): Pro

finalConfig.server = finalConfig.server || {}

finalConfig.server.port = await getPort({ port: 3000, host: 'localhost' }),
finalConfig.server.port = await getPort({ port: finalConfig.server.port || 3000, host: 'localhost' }),

debug(`the resolved server config is ${JSON.stringify(finalConfig, null, 2)}`)

Expand Down

4 comments on commit d0dcf22

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on d0dcf22 Apr 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.0.2/circle-develop-d0dcf221018cf2c364bc00ff6f750146eb048e7d/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on d0dcf22 Apr 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 ia32 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.0.2/appveyor-develop-d0dcf221018cf2c364bc00ff6f750146eb048e7d/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on d0dcf22 Apr 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.0.2/appveyor-develop-d0dcf221018cf2c364bc00ff6f750146eb048e7d/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on d0dcf22 Apr 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.0.2/circle-develop-d0dcf221018cf2c364bc00ff6f750146eb048e7d/cypress.tgz

Please sign in to comment.