Fix minior issue in the documentation related to port customization (#7436)
This commit is contained in:
parent
b9b57d901d
commit
3943fa390a
2 changed files with 6 additions and 1 deletions
5
.changeset/five-ghosts-sit.md
Normal file
5
.changeset/five-ghosts-sit.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix an issue related to the documentation. Destructure the argument of the function to customize the Astro dev server based on the command run.
|
|
@ -859,7 +859,7 @@ export interface AstroUserConfig {
|
|||
* ```js
|
||||
* {
|
||||
* // Example: Use the function syntax to customize based on command
|
||||
* server: (command) => ({ port: command === 'dev' ? 3000 : 4000 })
|
||||
* server: ({ command }) => ({ port: command === 'dev' ? 3000 : 4000 })
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue