mirror of
https://github.com/cloudflare/cloudflare-docs.git
synced 2026-01-11 20:06:58 +00:00
Overwrite prettier rule that is breaking image documentation (#22400)
This commit is contained in:
parent
f6403ee5cd
commit
caca61de05
3 changed files with 16 additions and 3 deletions
|
|
@ -5,3 +5,4 @@ dist
|
|||
public/__redirects
|
||||
public/analytics/static/downloads/main.css
|
||||
src/content/workers-ai-models/*.json
|
||||
src/content/partials/images/*.mdx
|
||||
|
|
@ -11,5 +11,9 @@ This setting only works directly with [image transformations](/images/transform-
|
|||
In case of a [fatal error](/images/reference/troubleshooting/#error-responses-from-resizing) that prevents the image from being resized, redirects to the unresized source image URL. This may be useful in case some images require user authentication and cannot be fetched anonymously via Worker. This option should not be used if there is a chance the source image is very large. This option is ignored if the image is from another domain, but you can use it with subdomains.
|
||||
|
||||
<Tabs>
|
||||
<TabItem label="URL format">```js onerror=redirect ```</TabItem>
|
||||
<TabItem label="URL format">
|
||||
```js
|
||||
onerror=redirect
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
|
|||
|
|
@ -9,8 +9,16 @@ Allows overriding `quality` value whenever a slow connection is detected.
|
|||
Available options are same as [quality](/images/transform-images/transform-via-url/#quality).
|
||||
|
||||
<Tabs>
|
||||
<TabItem label="URL format">```js slow-connection-quality=50 ```</TabItem>
|
||||
<TabItem label="URL format alias">```js scq=50 ```</TabItem>
|
||||
<TabItem label="URL format">
|
||||
```js
|
||||
slow-connection-quality=50
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem label="URL format alias">
|
||||
```js
|
||||
scq=50
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Detecting slow connections is currently only supported on Chromium-based browsers such as Chrome, Edge, and Opera.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue