Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module.exports = {
output: 'standalone',
images: {
loader: 'custom',
loaderFile: './src/image-loader.js'
loaderFile: './src/media/image-loader.js',
unoptimized: true
},
typescript: {
ignoreBuildErrors: false
Expand Down
3 changes: 2 additions & 1 deletion src/app/(default)/components/RecentMediaCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getUploadDateSummary } from '../../../js/utils'
import { PostHeader } from './Post'
import { resolver as urlResolver } from '../../../components/media/Tag'
import { ATagWrapper } from '../../../components/Utils'

import imageLoader from '@/js/media/image-loader'
const MOBILE_IMAGE_MAX_WIDITH = 600

interface RecentImageCardProps {
Expand Down Expand Up @@ -42,6 +42,7 @@ export const RecentImageCard = ({
height={MOBILE_IMAGE_MAX_WIDITH / imageRatio}
sizes={`${MOBILE_IMAGE_MAX_WIDITH}px`}
onLoad={() => setLoaded(true)}
loader={imageLoader}
alt=''
/>
<div
Expand Down
10 changes: 0 additions & 10 deletions src/image-loader.js

This file was deleted.

Loading