You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, a page might be part of your deployed site but not part of your Astro project. If you'd like to include a page in your sitemap that *isn't* created by Astro, you can use this option.
238
+
An array of externally-generated pages to be included in the generated sitemap file.
239
+
240
+
Use this option to include pages in your sitemap that are a part of your deployed site but are not created by Astro.
An array of externally-generated sitemaps to be included in the `sitemap-index.xml` file along with the generated sitemap entries.
266
+
267
+
Use this option to include external sitemaps in the `sitemap-index.xml` file created by Astro for sections of your deployed site that have their own sitemaps not created by Astro. This is helpful when you host multiple services under the same domain.
@@ -434,7 +464,7 @@ import { defineConfig } from 'astro/config';
434
464
importsitemapfrom'@astrojs/sitemap';
435
465
436
466
exportdefaultdefineConfig({
437
-
site:'https://stargazers.club',
467
+
site:'https://example.com',
438
468
integrations: [
439
469
sitemap({
440
470
filenameBase:'astronomy-sitemap'
@@ -443,7 +473,7 @@ export default defineConfig({
443
473
});
444
474
```
445
475
446
-
The given configuration will generate sitemap files at `https://stargazers.club/astronomy-sitemap-0.xml` and `https://stargazers.club/astronomy-sitemap-index.xml`.
476
+
The given configuration will generate sitemap files at `https://example.com/astronomy-sitemap-0.xml` and `https://example.com/astronomy-sitemap-index.xml`.
Enables experimental [Chrome DevTools workspace integration](https://developer.chrome.com/docs/devtools/workspaces) for the Astro dev server.
20
+
21
+
This feature allows you to edit files directly in Chrome DevTools and have those changes reflected in your local file system via a connected workspace folder. This is useful for applying edits such as adjusting CSS values without leaving your browser tab.
22
+
23
+
With this feature enabled, running `astro dev` will automatically configure a Chrome DevTools workspace for your project. Your project will then appear as an available [workspace source that you can connect](#connecting-your-project). Then, changes that you make in the "Sources" panel are automatically saved to your project source code.
24
+
25
+
To enable this feature, add the experimental flag `chromeDevtoolsWorkspace` to your Astro config:
26
+
27
+
```js title="astro.config.mjs" ins={4-6}
28
+
import { defineConfig } from'astro/config';
29
+
30
+
exportdefaultdefineConfig({
31
+
experimental: {
32
+
chromeDevtoolsWorkspace:true,
33
+
},
34
+
});
35
+
```
36
+
37
+
## Connecting your project
38
+
39
+
Astro will create the necessary configuration file to support Chrome DevTools workspaces. However, your project must also be [connected as a source](https://developer.chrome.com/docs/devtools/workspaces#manual-connection) to enable file saving.
40
+
41
+
<Steps>
42
+
43
+
1.[Start the Astro dev server](/en/develop-and-build/#start-the-astro-dev-server) with the appropriate CLI command for your package manager.
44
+
45
+
2. Navigate to your site preview (e.g. `http://localhost:4321/`) in Chrome and open DevTools.
46
+
47
+
3. Under the **Sources** > **Workspaces** tab, you will find your Astro project folder. Click **Connect** to add your directory as a workspace.
48
+
49
+
</Steps>
50
+
51
+
See the [Chrome DevTools workspace documentation](https://developer.chrome.com/docs/devtools/workspaces#connect) for more information.
0 commit comments