We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9b57d9 commit 3943fa3Copy full SHA for 3943fa3
.changeset/five-ghosts-sit.md
@@ -0,0 +1,5 @@
1
+---
2
+'astro': patch
3
4
+
5
+Fix an issue related to the documentation. Destructure the argument of the function to customize the Astro dev server based on the command run.
packages/astro/src/@types/astro.ts
@@ -859,7 +859,7 @@ export interface AstroUserConfig {
859
* ```js
860
* {
861
* // Example: Use the function syntax to customize based on command
862
- * server: (command) => ({ port: command === 'dev' ? 3000 : 4000 })
+ * server: ({ command }) => ({ port: command === 'dev' ? 3000 : 4000 })
863
* }
864
* ```
865
*/
0 commit comments