Skip to content

Commit

Permalink
이미지 rotate 이슈
Browse files Browse the repository at this point in the history
  • Loading branch information
shinwonse committed Jan 5, 2025
1 parent b0a5926 commit 3d7a148
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: { ignoreDuringBuilds: true }
eslint: { ignoreDuringBuilds: true },
experimental: {
serverComponentsHmrCache: false,
}
}

module.exports = nextConfig
1 change: 1 addition & 0 deletions src/utils/rehypeImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const processImageNode = async (node: Element, index: number) => {

/* 이미지 최적화 */
const image = sharp(originImage)
.rotate()
.resize({ width: SIZE * 2 })
.webp({ effort: 6 });
const { height = SIZE, width = SIZE } = await image.metadata();
Expand Down

0 comments on commit 3d7a148

Please sign in to comment.