| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2da5bc8 commit a6e30fa
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,12 @@ import { normalizeCacheOptions } from '../../utils/normalize-cache'; | |||
| 13 | 13 | import { ApplicationBuilderOptions } from '../application'; | |
| 14 | 14 | import { Schema as DevServerOptions } from './schema'; | |
| 15 | 15 | ||
| 16 | - export type NormalizedDevServerOptions = Awaited<ReturnType<typeof normalizeOptions>>; | ||
| 16 | + export type NormalizedDevServerOptions = Omit< | ||
| 17 | + Awaited<ReturnType<typeof normalizeOptions>>, | ||
| 18 | + 'strictPort' | ||
| 19 | + > & { | ||
| 20 | + strictPort?: boolean; | ||
| 21 | + }; | ||
| 17 | 22 | ||
| 18 | 23 | /** | |
| 19 | 24 | * Normalize the user provided options by creating full paths for all path based options | |
@@ -122,6 +127,7 @@ export async function normalizeOptions( | |||
| 122 | 127 | buildTarget, | |
| 123 | 128 | host: host ?? 'localhost', | |
| 124 | 129 | port, | |
| 130 | + strictPort: port !== 0, | ||
| 125 | 131 | poll, | |
| 126 | 132 | open, | |
| 127 | 133 | verbose, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,7 +55,7 @@ async function createServerConfig( | |||
| 55 | 55 | ssrFiles, | |
| 56 | 56 | }, | |
| 57 | 57 | port: serverOptions.port, | |
| 58 | - strictPort: true, | ||
| 58 | + strictPort: serverOptions.strictPort ?? true, | ||
| 59 | 59 | host: serverOptions.host, | |
| 60 | 60 | open: serverOptions.open, | |
| 61 | 61 | allowedHosts: serverOptions.allowedHosts, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments