Skip to content

Commit

Permalink
docs: fix prettier lint (vercel#59918)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored and agustints committed Jan 6, 2024
1 parent 7b35b0d commit e801bff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/02-app/02-api-reference/05-next-config-js/images.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ export default function sanityLoader({ src, width, quality }) {
```js
// Docs: https://sirv.com/help/articles/dynamic-imaging/
export default function sirvLoader({ src, width, quality }) {
const url = new URL(`https://example.com${src}`);
const params = url.searchParams;
params.set("format", params.getAll("format").join(",") || "optimal");
params.set("w", params.get("w") || width.toString());
params.set("q", (quality || 85).toString());
return url.href;
const url = new URL(`https://example.com${src}`)
const params = url.searchParams
params.set('format', params.getAll('format').join(',') || 'optimal')
params.set('w', params.get('w') || width.toString())
params.set('q', (quality || 85).toString())
return url.href
}
```

Expand Down

0 comments on commit e801bff

Please sign in to comment.