-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathnext.config.js
More file actions
50 lines (46 loc) · 1.49 KB
/
Copy pathnext.config.js
File metadata and controls
50 lines (46 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
const config = {
reactStrictMode: true,
env: {
STAGE: process.env.STAGE,
NEXT_PUBLIC_LESSONS_API: process.env.NEXT_PUBLIC_LESSONS_API,
NEXT_PUBLIC_CONTENT_ROOT: process.env.NEXT_PUBLIC_CONTENT_ROOT,
NEXT_PUBLIC_GOOGLE_ANALYTICS: process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS,
},
images: {
remotePatterns: [
{ protocol: "https", hostname: "content.lessons.church" },
{ protocol: "https", hostname: "content.staging.lessons.church" },
{ protocol: "https", hostname: "i.vimeocdn.com" },
{ protocol: "https", hostname: "d347bo4ltvvnaz.cloudfront.net" },
{ protocol: "https", hostname: "files.churchpdf.com" }
]
},
transpilePackages: ["@churchapps/apphelper", "mui-tel-input", "react-ga4", "@mui/material", "@mui/styled-engine"],
serverExternalPackages: ["@xenova/transformers"],
webpack: (config, { isServer }) => {
config.resolve.alias = {
...config.resolve.alias,
"sharp$": false,
"onnxruntime-node$": false,
};
return config;
},
}
module.exports = process.env.ANALYZE === 'true'
? require('@next/bundle-analyzer')({ enabled: true })(config)
: config
const { withSentryConfig } = require("@sentry/nextjs");
module.exports = withSentryConfig(
module.exports,
{
org: "churchapps",
project: "lessons",
silent: !process.env.CI,
widenClientFileUpload: true,
// tunnelRoute: "/monitoring",
webpack: {
treeshake: { removeDebugLogging: true },
automaticVercelMonitors: true
}
}
);