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
Copy file name to clipboardExpand all lines: src/content/docs/en/reference/configuration-reference.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ Set the route matching behavior for trailing slashes in the dev server and on-de
100
100
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.
101
101
102
102
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.
104
104
105
105
```js
106
106
{
@@ -476,7 +476,7 @@ Setting `build.format` controls what `Astro.url` is set to during the build. Whe
476
476
477
477
This means that when you create relative URLs using `new URL('./relative', Astro.url)`, you will get consistent behavior between dev and build.
478
478
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:
480
480
- `directory` - Set `trailingSlash: 'always'`
481
481
- `file` - Set `trailingSlash: 'never'`
482
482
@@ -957,7 +957,7 @@ Add this attribute to any `<a />` link on your page to enable prefetching for th
957
957
```html
958
958
<a href="/about" data-astro-prefetch>About</a>
959
959
```
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.
961
961
962
962
See the [Prefetch guide](/en/guides/prefetch/) for more information.
963
963
@@ -1083,7 +1083,7 @@ Set `false` to bypass the default image size limit for the Sharp image service a
1083
1083
1084
1084
Defines a list of permitted image source domains for remote image optimization. No other remote images will be optimized by Astro.
1085
1085
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.
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.
1584
1584
1585
1585
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.
0 commit comments