feat(config): dev.server.hostname (#807)

This commit is contained in:
Aaron
2024-07-07 09:31:38 -05:00
committed by GitHub
parent a82eb46511
commit a19f9e12c4
2 changed files with 7 additions and 1 deletions
@@ -126,7 +126,7 @@ export async function resolveConfig(
}
devServerConfig = {
port,
hostname: 'localhost',
hostname: mergedConfig.dev?.server?.hostname ?? 'localhost',
};
}
+6
View File
@@ -338,6 +338,12 @@ export interface InlineConfig {
* Port to run the dev server on. Defaults to the first open port from 3000 to 3010.
*/
port?: number;
/**
* Hostname to run the dev server on.
*
* @default "localhost"
*/
hostname?: string;
};
/**
* Controls whether a custom keyboard shortcut command, `Alt+R`, is added during dev mode to