Skip to content

Commit

Permalink
chore: output nextjs to dist
Browse files Browse the repository at this point in the history
fix: dockerfile copy static files
  • Loading branch information
Jan Kühnlein committed Feb 15, 2024
1 parent 9c8676a commit 0f7ef25
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ RUN apt-get update \
RUN mkdir /app
WORKDIR /app

COPY --from=build /build/build/standalone /app/nextjs
COPY --from=build /build/build/static /app/nextjs/.next/static
COPY --from=build /build/dist/standalone /app/nextjs
COPY --from=build /build/dist/static /app/nextjs/dist/static
COPY --from=build /build/temporal/lib /app/worker
COPY --from=build /build/package*.json /app

Expand Down
2 changes: 1 addition & 1 deletion app/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
distDir: "build",
distDir: "dist",
output: "standalone",
};

Expand Down
120 changes: 120 additions & 0 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"build/types/**/*.ts"
"build/types/**/*.ts",
"dist/types/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 0f7ef25

Please sign in to comment.