Skip to content

Commit ae8107c

Browse files
committed
feat: enhance Dockerfile and Next.js config for improved server functionality and module resolution
1 parent 927af3d commit ae8107c

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

Dockerfile.chase.frontend

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ FROM oven/bun:latest AS release
2727
WORKDIR /app/prod
2828
COPY --from=nextjs /app/staging/node_modules ./node_modules/
2929
COPY --from=builder /app/staging/chase/frontend/public ./public/
30+
# Copy the entire standalone directory
3031
COPY --from=builder /app/staging/chase/frontend/.next/standalone ./
3132
COPY --from=builder /app/staging/chase/frontend/.next/static ./.next/static
33+
# Add this line to copy required server files
34+
COPY --from=builder /app/staging/chase/frontend/.next/server ./.next/server
35+
3236
ARG NEXT_PUBLIC_VERSION
3337
ENV NODE_ENV=production
3438
ENV PORT=3000
3539
ENV NEXT_PUBLIC_VERSION=${NEXT_PUBLIC_VERSION}
36-
# run the app
40+
3741
USER bun
3842
EXPOSE 3000/tcp
3943
ENTRYPOINT [ "bunx", "next", "start" ]

bun.lockb

0 Bytes
Binary file not shown.

chase/frontend/next.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ const nextConfig = {
44
images: {
55
unoptimized: true,
66
},
7+
experimental: {
8+
// Enable built-in module resolution
9+
serverComponentsExternalPackages: [],
10+
}
711
};
812

913
module.exports = nextConfig;

chase/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"fuse.js": "^7.0.0",
2323
"markdown-to-jsx": "^7.4.7",
2424
"mousetrap-react": "^0.0.3",
25-
"next": "14.2.17",
25+
"next": "14.2.18",
2626
"next-runtime-env": "^3.2.1",
2727
"oidc-client-ts": "^3.0.1",
2828
"postcss": "8.4.38",

0 commit comments

Comments
 (0)