mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
Merge pull request #11970 from Hallidayo/docs-next-js-image-loader
fix: docs - next js loader
This commit is contained in:
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}`
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user