Skip to content

Commit 11448a9

Browse files
codercatdevdeveloper
andcommitted
fix: update image quality settings and import syntax
- Added 'qualities' array to the Next.js configuration for image optimization. - Updated import statement in image.ts for better consistency with ES module syntax. Co-authored-by: developer <developer@example.com>
1 parent 1987802 commit 11448a9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
44
images: {
5+
qualities: [75, 80],
56
remotePatterns: [
67
{
78
protocol: "https",

sanity/lib/image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import createImageUrlBuilder from "@sanity/image-url";
1+
import { createImageUrlBuilder } from "@sanity/image-url";
22
import { dataset, projectId } from "./api";
33

44
const imageBuilder = createImageUrlBuilder({ projectId, dataset });

0 commit comments

Comments
 (0)