Skip to content

Commit f1e994e

Browse files
committed
cloud.yml -> cloud.yaml
1 parent 994418d commit f1e994e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/cloud/redirects.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Redirects and Rewrites
22

3-
Craft Cloud allows you to define any number of custom [redirect](#redirects) and [rewrite](#rewrites) rules via your [`craft-cloud.yml` config file](config.md).
3+
Craft Cloud allows you to define any number of custom [redirect](#redirects) and [rewrite](#rewrites) rules via your [`craft-cloud.yaml` config file](config.md).
44

55
Both features use the flexible [`URLPattern` API](https://developer.mozilla.org/en-US/docs/Web/API/URLPattern/exec) to match request URLs. These rules are evaluated on our gateway, _before_ we pass the request to your Craft application.
66

77
## Redirects
88

9-
Redirection rules live in your `craft-cloud.yml` file, under a `redirects` key:
9+
Redirection rules live in your `craft-cloud.yaml` file, under a `redirects` key:
1010

1111
```yml
1212
php-version: '8.2'
@@ -90,7 +90,7 @@ When the parsed `destination` begins with a slash (a _root-relative_ path), Craf
9090

9191
Unlike a [redirect](#redirects), URL rewrites are used to create virtual resources at our gateway—effectively giving you a configurable proxy. This means that when a matching URL is requested, the corresponding origin’s response is sent back, verbatim, without an initial 300-level response.
9292

93-
Rules follow essentially the same structure as redirects: the pattern-matching process and destination templates are identical. Rules are created under a `rewrites` key in your `craft-cloud.yml` config file.
93+
Rules follow essentially the same structure as redirects: the pattern-matching process and destination templates are identical. Rules are created under a `rewrites` key in your `craft-cloud.yaml` config file.
9494

9595
::: tip
9696
Using rewrites, you can avoid referencing `cdn.craft.cloud` or updating templates to use [`cloud.artifactUrl`](builds.md#artifact-urls)–any CDN requests can be served directly from your custom domain.

0 commit comments

Comments
 (0)