Skip to content

Commit

Permalink
feat: remove images from the docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
louismollick committed Oct 15, 2024
1 parent 87420d9 commit 843123d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN \
fi

# We only keep the public/images folder during the build process
RUN rm -rf /app/public/images
RUN rm -rf /app/public/images /app/.next/standalone/public/images

##### RUNNER

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,5 @@
},
"ct3aMetadata": {
"initVersion": "7.37.0"
},
"packageManager": "[email protected]"
}
}
}
6 changes: 3 additions & 3 deletions src/app/_components/mangaPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ const MangaPageView = ({
// const volumeNumberParsed = parseInt(volumeNumber, 10);
const pageNumberParsed = parseInt(pageNumber, 10);

const nextPagePath = `/${mangaSlug}/${volumeNumber}/${pageNumberParsed + 1}`;
const nextPagePath = `/read/${mangaSlug}/${volumeNumber}/${pageNumberParsed + 1}`;
const goToNextPage = () => router.push(nextPagePath);
const previousPagePath = `/${mangaSlug}/${volumeNumber}/${pageNumberParsed - 1}`;
const previousPagePath = `/read/${mangaSlug}/${volumeNumber}/${pageNumberParsed - 1}`;
const goToPreviousPage = () => router.push(previousPagePath);

useKeyPress({
Expand Down Expand Up @@ -188,7 +188,7 @@ const MangaPageView = ({
</Button>
</Link>

<Link href={`/${mangaSlug}`}>
<Link href={`/read/${mangaSlug}`}>
<Button
variant="ghost"
size="icon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default async function VolumeList({
{volumes.map((volumeNum, idx) => (
<Link
key={idx}
href={`/${mangaSlug}/${volumeNum}/0`}
href={`/read/${mangaSlug}/${volumeNum}/0`}
className="flex flex-col gap-3"
>
Volume {volumeNum}
Expand Down

0 comments on commit 843123d

Please sign in to comment.