Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ const nextConfig = (phase) => {
experimental: {
// externalize server-side node_modules with size > 1mb, to improve dev mode performance/RAM usage
optimizePackageImports: ["@calcom/ui"],
webpackMemoryOptimizations: true,
webpackBuildWorker: true,
},
productionBrowserSourceMaps: true,
/* We already do type check on GH actions */
Expand Down Expand Up @@ -231,7 +233,15 @@ const nextConfig = (phase) => {
images: {
unoptimized: true,
},
webpack: (config, { webpack, buildId, isServer }) => {
webpack: (config, { webpack, buildId, isServer, dev }) => {
if (!dev) {
if (config.cache) {
config.cache = Object.freeze({
type: "memory",
});
}
}

if (isServer) {
// Module not found fix @see https://github.com/boxyhq/jackson/issues/1535#issuecomment-1704381612
config.plugins.push(
Expand Down
6 changes: 5 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@
"CAL_VIDEO_RECORDING_TOKEN_SECRET",
"ORGANIZER_EMAIL_EXEMPT_DOMAINS",
"SLOTS_CACHE_TTL",
"CSP_POLICY"
"CSP_POLICY",
"NEXT_PUBLIC_API_V2_URL",
"NEXT_PUBLIC_WEBAPP_URL",
"NEXT_PUBLIC_WEBSITE_URL",
"BUILD_STANDALONE"
],
"tasks": {
"@calcom/prisma#build": {
Expand Down
Loading