Skip to content

Commit

Permalink
feat(vite): enable strictPort by default
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Feb 4, 2022
1 parent 1608fc2 commit 94ed639
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vite-plugin-laravel/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export const config = (options: Options = {}): Plugin => ({
? { maxVersion: 'TLSv1.2', key, cert }
: protocol === 'https:',
port: port ? Number(port) : 3000,
strictPort: !process.argv.includes('--no-strict-port'),
origin: `${protocol}//${hostname}:${port}`,
hmr: {
host: hostname,
Expand Down

0 comments on commit 94ed639

Please # to comment.