-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c622ff0
commit b3b861d
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'astro': minor | ||
--- | ||
|
||
Adds the `astro config` command to manage user preferences. User preferences are specific to individual Astro users, unlike the `astro.config.mjs` file which changes behavior for everyone working on a project. | ||
|
||
User preferences are scoped to the current project by default, stored in a local `.astro/settings.json` file. Using the `--global` flag, user preferences can also be applied to every Astro project on the current machine. Global user preferences are stored in an operating system-specific location. | ||
|
||
```sh | ||
# Disable the dev overlay for the current user in the current project | ||
npm run astro config devOverlay.enabled false | ||
# Disable the dev overlay for the current user in all Astro projects on this machine | ||
npm run astro config --global devOverlay.enabled false | ||
|
||
# Check if the dev overlay is enabled for the current user | ||
npm run astro config devOverlay.enabled | ||
``` |