diff --git a/.dockerignore b/.dockerignore index 4289648..b909791 100644 --- a/.dockerignore +++ b/.dockerignore @@ -23,9 +23,6 @@ next-env.d.ts public/sitemap.xml public/robots.txt -# prettier -prettier.config.js - # docker Dockerfile* .dockerignore diff --git a/Dockerfile b/Dockerfile index 0798ba3..fac579e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM imbios/bun-node:20-alpine +FROM imbios/bun-node:20-slim WORKDIR /app COPY package.json bun.lockb ./ -RUN bun install --frozen-lockfile --production +RUN bun install --production --frozen-lockfile COPY . . diff --git a/bun.lockb b/bun.lockb index 400d3cb..7518e50 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index d43aacd..e81423e 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "clsx": "^2.1.0", "country-flag-icons": "^1.5.9", "cva": "^1.0.0-beta.1", + "husky": "^9.0.10", "lucide-react": "^0.312.0", "next": "^14.0.4", "next-intl": "^3.4.4", @@ -53,7 +54,6 @@ "eslint-config-next": "^14.0.4", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "husky": "^8.0.0", "lint-staged": "^15.2.0", "postcss": "^8.4.31", "prettier": "^3.1.0", diff --git a/src/app/[locale]/(dashboard)/news/[article]/page.tsx b/src/app/[locale]/(dashboard)/news/[article]/page.tsx index c17b7ea..23de1b5 100644 --- a/src/app/[locale]/(dashboard)/news/[article]/page.tsx +++ b/src/app/[locale]/(dashboard)/news/[article]/page.tsx @@ -10,11 +10,11 @@ import readingTime from 'reading-time'; import { AvatarIcon } from '@/components/profile/AvatarIcon'; -export async function generateStaticParams() { - return articleData.map((article) => ({ - article: String(article.id), - })); -} +// export async function generateStaticParams() { +// return articleData.map((article) => ({ +// article: String(article.id), +// })); +// } export async function generateMetadata({ params, diff --git a/src/components/news/CardGrid.tsx b/src/components/news/CardGrid.tsx index 3fd2d34..4541930 100644 --- a/src/components/news/CardGrid.tsx +++ b/src/components/news/CardGrid.tsx @@ -1,5 +1,3 @@ -import { articleMockData as articleData } from '@/mock-data/article'; - import { cx } from '@/lib/utils'; import { ArticleCard } from '@/components/news/ArticleCard';