Skip to content

Commit

Permalink
temporary increase to size
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Jan 24, 2025
1 parent 23b3661 commit fd1de1b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ FROM base AS builder
RUN apk add --no-cache libc6-compat
WORKDIR /app

# Increase Node.js memory limit for the build process
ENV NODE_OPTIONS="--max-old-space-size=4096"

# pull in source code / package.json / package-lock.json
COPY . .

Expand Down
17 changes: 14 additions & 3 deletions web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ const nextConfig = {
},
],
},
// Add these options to optimize the build
swcMinify: true,
experimental: {
optimizeCss: true,
// Disable unnecessary features
scrollRestoration: false,
legacyBrowsers: false,
},
async headers() {
return [
{
Expand Down Expand Up @@ -79,14 +87,17 @@ const sentryEnabled = Boolean(
process.env.SENTRY_AUTH_TOKEN && process.env.NEXT_PUBLIC_SENTRY_DSN
);

// Sentry webpack plugin options
// Modify the Sentry webpack plugin options
const sentryWebpackPluginOptions = {
org: process.env.SENTRY_ORG || "onyx",
project: process.env.SENTRY_PROJECT || "data-plane-web",
authToken: process.env.SENTRY_AUTH_TOKEN,
silent: !sentryEnabled, // Silence output when Sentry is disabled
dryRun: !sentryEnabled, // Don't upload source maps when Sentry is disabled
silent: !sentryEnabled,
dryRun: !sentryEnabled,
sourceMaps: false,
// Add this option to disable source map generation
disableServerWebpackPlugin: true,
disableClientWebpackPlugin: true,
};

// Export the module with conditional Sentry configuration
Expand Down

0 comments on commit fd1de1b

Please sign in to comment.