Skip to content

Commit efb42c3

Browse files
authored
Merge pull request #57 from teacoder-team/dev
fix: Next.js 16 build errors
2 parents 384ee8e + 903c173 commit efb42c3

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ FROM oven/bun:1 AS base
33
WORKDIR /usr/src/app
44

55
COPY package.json bun.lockb ./
6-
76
RUN bun install --frozen-lockfile
87

98
FROM oven/bun:1 AS release
109

11-
COPY --from=base /usr/src/app/node_modules node_modules
10+
WORKDIR /usr/src/app
1211

12+
COPY --from=base /usr/src/app/node_modules node_modules
1313
COPY . .
1414

1515
RUN bun --bun run build
1616

1717
CMD bun --bun run start
1818

19-
EXPOSE 3000
19+
EXPOSE 14701

next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const config: NextConfig = {
66
output: 'standalone',
77
trailingSlash: false,
88
skipTrailingSlashRedirect: true,
9+
cacheComponents: true,
910
images: {
1011
remotePatterns: [
1112
{

src/components/layout/footer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
'use client'
2+
13
import { ExternalLink } from 'lucide-react'
24
import Link from 'next/link'
35
import { JSX } from 'react'
46
import { FaGithub } from 'react-icons/fa'
57
import { FaTelegram, FaYoutube } from 'react-icons/fa6'
6-
import { SiBoosty } from 'react-icons/si'
78

89
import { ROUTES } from '@/src/constants'
910

0 commit comments

Comments
 (0)