Merge pull request #11970 from Hallidayo/docs-next-js-image-loader

fix: docs - next js loader
This commit is contained in:
Terry Sutton authored and GitHub committed 2023-02-03 16:18:56 -03:30
commit bf95f766b5
1 file changed
+2 -4
@@ -104,10 +104,8 @@ To get started, create a `supabase-image-loader.js` file in your NextJS project
```ts
const projectId = '' // your supabase project id
export default function supabaseLoader({ src, width, height, quality }) {
return `https://${projectId}.supabase.co/storage/v1/render/image/public/${src}?width=${width}&height=${
height || 0
}&quality=${quality || 75}`
export default function supabaseLoader({ src, width, quality }) {
return `https://${projectId}.supabase.co/storage/v1/render/image/public/${src}?width=${width}&quality=${quality || 75}`
}
```