Skip to content

Commit

Permalink
Use nextconfig.js instead of mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Jul 8, 2024
1 parent 080fd67 commit a034fa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ RUN set -ex \
# PNPM
# symlink some dependencies
COPY --from=roboshield-builder --chown=nextjs:nodejs /workspace/node_modules ./node_modules
COPY --from=roboshield-builder --chown=nextjs:nodejs /workspace/apps/roboshield/next.config.mjs ./apps/roboshield/next.config.mjs
COPY --from=roboshield-builder --chown=nextjs:nodejs /workspace/apps/roboshield/next.config.js ./apps/roboshield/next.config.js
COPY --from=roboshield-builder --chown=nextjs:nodejs /workspace/apps/roboshield/.env ./apps/roboshield/.env
# Since we can't use output: "standalone", copy all app's dependencies
COPY --from=roboshield-builder --chown=nextjs:nodejs /workspace/apps/roboshield/node_modules ./apps/roboshield/node_modules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withSentryConfig } from "@sentry/nextjs";
import path from "path";
const { withSentryConfig } = require("@sentry/nextjs");
const path = require("path");

const PROJECT_ROOT = process.env.PROJECT_ROOT?.trim();
const outputFileTracingRoot = PROJECT_ROOT
Expand Down Expand Up @@ -41,7 +41,7 @@ const nextConfig = {
},
};

export default withSentryConfig(nextConfig, {
module.exports = withSentryConfig(nextConfig, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

Expand Down

0 comments on commit a034fa7

Please sign in to comment.