Skip to content

Commit

Permalink
Disable strict port so server will not exit when port is already used (
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanpham-barrel committed May 10, 2024
1 parent 8e2fa41 commit a0344e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/vite-plugin-shopify/src/config.ts
Expand Up @@ -64,7 +64,6 @@ export default function shopifyConfig (options: Required<Options>): Plugin {
https,
port,
origin,
strictPort: config.server?.strictPort ?? true,
hmr: config.server?.hmr === false
? false
: {
Expand Down
1 change: 0 additions & 1 deletion packages/vite-plugin-shopify/test/config.test.ts
Expand Up @@ -25,7 +25,6 @@ describe('vite-plugin-shopify:config', () => {
expect(config.server.https).toEqual(undefined)
expect(config.server.port).toEqual(5173)
expect(config.server.origin).toEqual('__shopify_vite_placeholder__')
expect(config.server.strictPort).toEqual(true)
expect(config.server.hmr.host).toEqual('localhost')
expect(config.server.hmr.port).toEqual(5173)
expect(config.server.hmr.protocol).toEqual('ws')
Expand Down

0 comments on commit a0344e4

Please sign in to comment.