Skip to content

Commit

Permalink
removed remark
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichmax committed Feb 2, 2024
1 parent 8e3cc77 commit b786b57
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const withBundleAnalyzer = require("@next/bundle-analyzer")({
const nextConfig = {
output: "standalone",
images: {
//loader: "custom",
//loaderFile: "./src/utils/loader.js",
loader: "custom",
loaderFile: "./src/utils/loader.js",
remotePatterns: [
{
protocol: 'https',
Expand Down
Binary file modified public/wallpaper/backgroundImage.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/article/article-image/article-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function PostImage({ preview, postData }) {
) : null
) : coverImage ? (
<PostImg
src={`${process.env.NEXT_PUBLIC_STRAPI_API_URL}${coverImage.url}`}
src={`${coverImage.url}`}
alt={title}
title={title}
className="u-photo"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function imgproxyLoader({ src, width, height, quality }) {
src.replace(process.env.NEXT_PUBLIC_STRAPI_API_URL, "")

const path =
`/size:${width ? width : 0}:${height ? height : 450}` +
`/size:${width ? width : 1300}:${height ? height : 450}` +
`/resizing_type:auto` +
(quality ? `/quality:${quality}` : "") +
`/sharpen:0.5` +
Expand Down
2 changes: 1 addition & 1 deletion src/utils/renderers.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const MarkdownImage = ({ src }) => {

if (data) {
return (
<Image
<img
src={data.src}
title={data.title}
alt={data.alt}
Expand Down

0 comments on commit b786b57

Please sign in to comment.