Skip to content

Commit 07f85ba

Browse files
astrobot-houstondelucisyanthomasdev
authored
ci: update configuration reference docs (#12517)
Co-authored-by: delucis <[email protected]> Co-authored-by: Yan <[email protected]>
1 parent 13f125b commit 07f85ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/docs/en/reference/configuration-reference.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Set the route matching behavior for trailing slashes in the dev server and on-de
100100
When redirects occur in production for GET requests, the redirect will be a 301 (permanent) redirect. For all other request methods, it will be a 308 (permanent, and preserve the request method) redirect.
101101

102102
Trailing slashes on prerendered pages are handled by the hosting platform, and may not respect your chosen configuration.
103-
See your hosting platform's documentation for more information. You cannot use Astro [redirects](/en/reference/configuration-reference/#redirects) for this use case at this point.
103+
See your hosting platform's documentation for more information. You cannot use Astro [redirects](#redirects) for this use case at this point.
104104

105105
```js
106106
{
@@ -476,7 +476,7 @@ Setting `build.format` controls what `Astro.url` is set to during the build. Whe
476476

477477
This means that when you create relative URLs using `new URL('./relative', Astro.url)`, you will get consistent behavior between dev and build.
478478

479-
To prevent inconsistencies with trailing slash behaviour in dev, you can restrict the [`trailingSlash` option](/en/reference/configuration-reference/#trailingslash) to `'always'` or `'never'` depending on your build format:
479+
To prevent inconsistencies with trailing slash behaviour in dev, you can restrict the [`trailingSlash` option](#trailingslash) to `'always'` or `'never'` depending on your build format:
480480
- `directory` - Set `trailingSlash: 'always'`
481481
- `file` - Set `trailingSlash: 'never'`
482482

@@ -957,7 +957,7 @@ Add this attribute to any `<a />` link on your page to enable prefetching for th
957957
```html
958958
<a href="/about" data-astro-prefetch>About</a>
959959
```
960-
Further customize the default prefetching behavior using the [`prefetch.defaultStrategy`](/en/reference/configuration-reference/#prefetchdefaultstrategy) and [`prefetch.prefetchAll`](/en/reference/configuration-reference/#prefetchprefetchall) options.
960+
Further customize the default prefetching behavior using the [`prefetch.defaultStrategy`](#prefetchdefaultstrategy) and [`prefetch.prefetchAll`](#prefetchprefetchall) options.
961961

962962
See the [Prefetch guide](/en/guides/prefetch/) for more information.
963963

@@ -1083,7 +1083,7 @@ Set `false` to bypass the default image size limit for the Sharp image service a
10831083

10841084
Defines a list of permitted image source domains for remote image optimization. No other remote images will be optimized by Astro.
10851085

1086-
This option requires an array of individual domain names as strings. Wildcards are not permitted. Instead, use [`image.remotePatterns`](/en/reference/configuration-reference/#imageremotepatterns) to define a list of allowed source URL patterns.
1086+
This option requires an array of individual domain names as strings. Wildcards are not permitted. Instead, use [`image.remotePatterns`](#imageremotepatterns) to define a list of allowed source URL patterns.
10871087

10881088
```js
10891089
// astro.config.mjs
@@ -1580,7 +1580,7 @@ export default defineConfig({
15801580
<Since v="4.15.0" />
15811581
</p>
15821582

1583-
When [`i18n.fallback`](/en/reference/configuration-reference/#i18nfallback) is configured to avoid showing a 404 page for missing page routes, this option controls whether to [redirect](/en/guides/routing/#redirects) to the fallback page, or to [rewrite](/en/guides/routing/#rewrites) the fallback page's content in place.
1583+
When [`i18n.fallback`](#i18nfallback) is configured to avoid showing a 404 page for missing page routes, this option controls whether to [redirect](/en/guides/routing/#redirects) to the fallback page, or to [rewrite](/en/guides/routing/#rewrites) the fallback page's content in place.
15841584

15851585
By default, Astro's i18n routing creates pages that redirect your visitors to a new destination based on your fallback configuration. The browser will refresh and show the destination address in the URL bar.
15861586

0 commit comments

Comments
 (0)