-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
58 lines (55 loc) · 1.45 KB
/
next.config.js
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
51
52
53
54
55
56
57
58
/**
* @format
* @type {import('next').NextConfig}
*/
const nextConfig = {
transpilePackages: ['@mui/x-charts'],
reactStrictMode: true,
webpack: (config, { isServer }) => {
// Exclude modules from being bundled into client-side code
if (!isServer) {
config.resolve.fallback = {
fs: false, // Exclude fs module from client bundles
};
config.externals.push(
// Add the names of the problematic dependencies here
'firebase-admin',
'google-auth-library',
'http-proxy-agent'
// Add other problematic dependencies as needed
);
}
// this will override the experiments
config.experiments = { ...config.experiments, topLevelAwait: true };
// this will just update topLevelAwait property of config.experiments
// config.experiments.topLevelAwait = true
return config;
},
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'data.oireachtas.ie',
pathname: '/ie/oireachtas/member/id/**/**/**',
},
{
protocol: 'https',
hostname: 'upload.wikimedia.org',
pathname: '/wikipedia/commons/**/**/**/**/**',
},
],
},
};
module.exports = nextConfig;