5b9ad8da90
* Move next-server directory files to server directory * Update tests * Update paths in other places
26 lines
572 B
TypeScript
26 lines
572 B
TypeScript
export const VALID_LOADERS = [
|
|
'default',
|
|
'imgix',
|
|
'cloudinary',
|
|
'akamai',
|
|
] as const
|
|
|
|
export type LoaderValue = typeof VALID_LOADERS[number]
|
|
|
|
export type ImageConfig = {
|
|
deviceSizes: number[]
|
|
imageSizes: number[]
|
|
loader: LoaderValue
|
|
path: string
|
|
domains?: string[]
|
|
disableStaticImages: boolean
|
|
}
|
|
|
|
export const imageConfigDefault: ImageConfig = {
|
|
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
|
|
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
|
|
path: '/_next/image',
|
|
loader: 'default',
|
|
domains: [],
|
|
disableStaticImages: false,
|
|
}
|