Skip to content

Commit 93dbd20

Browse files
committed
fix: ensure static assets are copied to Next.js standalone output
1 parent dbc247c commit 93dbd20

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ COPY . .
2020
RUN pnpm build
2121

2222
# Next.js standalone output doesn't include static assets — copy them in
23+
RUN cp -r public .next/standalone/public
2324
RUN cp -r .next/static .next/standalone/.next/static
2425

2526
ENV NODE_ENV=production

0 commit comments

Comments
 (0)