Skip to content

Commit

Permalink
fix: build storefront as a standalone service
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennor committed Oct 10, 2024
1 parent aee29e6 commit 92b5842
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ COPY --from=builder --chown=node:node /home/node/public ./public

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=node:node /home/node/open-telemetry.js ./
COPY --from=builder --chown=node:node /home/node/node_modules ./node_modules
COPY --from=builder --chown=node:node /home/node/.next/standalone ./
COPY --from=builder --chown=node:node /home/node/.next/static ./.next/static
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const nextConfig = {
pageExtensions: ['page.tsx', 'page.ts'],
swcMinify: true,
reactStrictMode: true,
output: 'standalone',
};

module.exports = nextConfig;

0 comments on commit 92b5842

Please sign in to comment.