Use user-defined quality in OG images to reduce cardinality
This commit is contained in:
parent
b2d5747cb7
commit
0565eb93a5
@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
BASE_URL,
|
BASE_URL,
|
||||||
|
IMAGE_QUALITY,
|
||||||
VERCEL_BYPASS_KEY,
|
VERCEL_BYPASS_KEY,
|
||||||
VERCEL_BYPASS_SECRET,
|
VERCEL_BYPASS_SECRET,
|
||||||
} from '@/app/config';
|
} from '@/app/config';
|
||||||
@ -16,7 +17,7 @@ export const MAX_IMAGE_SIZE: NextImageSize = 3840;
|
|||||||
export const getNextImageUrlForRequest = (
|
export const getNextImageUrlForRequest = (
|
||||||
imageUrl: string,
|
imageUrl: string,
|
||||||
size: NextImageSize,
|
size: NextImageSize,
|
||||||
quality = 75,
|
quality = IMAGE_QUALITY,
|
||||||
baseUrl = BASE_URL,
|
baseUrl = BASE_URL,
|
||||||
addBypassSecret = false,
|
addBypassSecret = false,
|
||||||
) => {
|
) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user