feat: Allow specifying host and port for dev servers
- Updated `dev()` methods in Docusaurus and Starlight to accept host and port arguments, defaulting to `localhost:3000`. - This allows more flexibility in development server setup. - Updated example scripts to use the new parameters.
This commit is contained in:
@@ -206,7 +206,7 @@ fn cmd_docusaurus_execute(cmd Command) ! {
|
||||
}
|
||||
|
||||
if dev {
|
||||
site.dev()!
|
||||
site.dev(host: 'localhost', port: 3000)!
|
||||
}
|
||||
|
||||
if open {
|
||||
|
||||
@@ -138,6 +138,6 @@ fn cmd_starlight_execute(cmd Command) ! {
|
||||
}
|
||||
|
||||
if dev {
|
||||
site.dev()!
|
||||
site.dev(host: 'localhost', port: 3000)!
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user